Skip to content

Commit

Permalink
only set target property if building plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jan 3, 2025
1 parent f7b3d8b commit 7de8952
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ if(UNIX AND "${CMAKE_CXX_COMPILER_VERSION}" VERSION_GREATER 6.0)
endif()

DFHACK_PLUGIN(stonesense ${PROJECT_SRCS} LINK_LIBRARIES ${DFHACK_TINYXML} ${PROJECT_LIBS} COMPILE_FLAGS_MSVC "/FI\"Export.h\" /wd4312 /wd4996 /wd4251" COMPILE_FLAGS_GCC "-include Export.h ${STONESENSE_GCC_FLAGS}")
target_include_directories(stonesense PRIVATE ${stonesense_INCLUDES})
if(BUILD_PLUGINS)
target_include_directories(stonesense PRIVATE ${stonesense_INCLUDES})
endif()

IF(MSVC)
# Ignore unhelpful warnings about debug symbols being missing.
Expand Down

0 comments on commit 7de8952

Please sign in to comment.