mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
fix(cmake): properly define POCO_DLL and POCO_STATIC based on BUILD_SHARED_LIBS.
This commit is contained in:
@@ -28,13 +28,6 @@ if(WIN32)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(CppUnit
|
||||
PUBLIC
|
||||
POCO_STATIC
|
||||
)
|
||||
elseif(MINGW)
|
||||
target_compile_definitions(CppUnit
|
||||
PUBLIC
|
||||
_DLL)
|
||||
if(BUILD_SHARED_LIBS AND MINGW)
|
||||
target_compile_definitions(CppUnit PUBLIC _DLL)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user