Remove POCO_NO_AUTOMATIC_LIBS

POCO_NO_AUTOMATIC_LIBSis relevant only for Windows and should not be set.
It is used to automatically link the byside symbol file of each DLL
produced. It could be set on a user basis to avoid this automatic link.
This commit is contained in:
Joerg-Christian Boehme
2019-08-13 09:43:17 +02:00
parent c21e649992
commit 2637aa6610
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ target_include_directories(CppUnit
$<INSTALL_INTERFACE:include>
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_compile_definitions(CppUnit PUBLIC POCO_NO_AUTOMATIC_LIBS)
if(NOT BUILD_SHARED_LIBS)
target_compile_definitions(CppUnit
PUBLIC

View File

@@ -136,7 +136,7 @@ if(NOT BUILD_SHARED_LIBS)
endif()
if(WIN32)
target_compile_definitions(Foundation PUBLIC POCO_NO_AUTOMATIC_LIBS POCO_OS_FAMILY_WINDOWS UNICODE _UNICODE)
target_compile_definitions(Foundation PUBLIC POCO_OS_FAMILY_WINDOWS UNICODE _UNICODE)
target_link_libraries(Foundation PUBLIC iphlpapi)
endif()