aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2017-09-18 10:33:14 +0200
committerGitHub <noreply@github.com>2017-09-18 10:33:14 +0200
commit17c1dd1a6af33cc95a1116237111417d5a3902c4 (patch)
tree1dbc6703d4ed005da5b6f6ab3248ed038bdfe4f8 /CMakeLists.txt
parent1ab0ad9c1869b070a3d4665758067dd539d292c2 (diff)
parent2d529bcb82853edcbbaca0187b4bf2a9f751fdea (diff)
Merge pull request #113 from Lectem/STORMLIB_NO_AUTO_LINK
Stormlib no auto link
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 942f684..79e0092 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
project(StormLib)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.8.12)
set(LIBRARY_NAME storm)
@@ -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)