aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLectem <lectem@gmail.com>2017-09-17 14:28:01 +0200
committerLectem <lectem@gmail.com>2017-09-17 14:46:43 +0200
commit2d529bcb82853edcbbaca0187b4bf2a9f751fdea (patch)
tree1dbc6703d4ed005da5b6f6ab3248ed038bdfe4f8 /CMakeLists.txt
parent000b3a6635f2c93d878dad668b620d0432544f16 (diff)
Add STORMLIB_NO_AUTO_LINK define to disable linking with pragma
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 088c5ad..79e0092 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -308,7 +308,7 @@ endif()
add_library(${LIBRARY_NAME} ${LIB_TYPE} ${SRC_FILES} ${SRC_ADDITIONAL_FILES})
target_link_libraries(${LIBRARY_NAME} ${LINK_LIBS})
-target_compile_definitions(${LIBRARY_NAME} PUBLIC) #CMake should take care of the linking
+target_compile_definitions(${LIBRARY_NAME} INTERFACE STORMLIB_NO_AUTO_LINK) #CMake will take care of the linking
target_include_directories(${LIBRARY_NAME} PUBLIC src/)
set_target_properties(${LIBRARY_NAME} PROPERTIES PUBLIC_HEADER "src/StormLib.h;src/StormPort.h")
if(BUILD_SHARED_LIBS)