This library contains code that extends and simplifies different operations
for C++ language based programs
Revision | 5d2fcafc2500468364b556d282e3b9c332665490 (tree) |
---|---|
Zeit | 2017-12-11 07:57:28 |
Autor | Sergey Gusarov |
Commiter | Sergey Gusarov |
mingw: Fixed dynamic linking
@@ -23,7 +23,6 @@ | ||
23 | 23 | elseif ("${CPT_MODULE}" MATCHES "DYNAMIC") |
24 | 24 | set(CPT_LINK "SHARED") |
25 | 25 | add_definitions(-DCPT_SHARED_DYNAMIC) |
26 | - add_definitions(-DCT_USE_SHARED_DYNAMIC) | |
27 | 26 | endif() |
28 | 27 | set(CT_MODULE "${CPT_MODULE}") |
29 | 28 |
@@ -119,6 +118,8 @@ | ||
119 | 118 | include(${CMAKE_CURRENT_SOURCE_DIR}/libctools/cmake/cmake_tools/tools/link_public.cmake) |
120 | 119 | target_link_libraries(${PROJECT_NAME} ${CMT_LINK_PUBLIC} ${DEPENDENCY_LIBRARY_CTOOLS}) |
121 | 120 | |
121 | +target_compile_definitions(${PROJECT_NAME} ${CMT_LINK_PUBLIC} CT_USE_SHARED_DYNAMIC) | |
122 | + | |
122 | 123 | set(CMAKE_VERBOSE_MAKEFILE true) |
123 | 124 | |
124 | 125 | if (CPT_BUILD_TESTS) |