mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-20 00:59:48 +01:00
Fix clang linker problem by defining POCO_NO_AUTOMATIC_LIBS (#3177)
This commit is contained in:
parent
f810bd0b41
commit
ff3ff01f6f
@ -22,6 +22,11 @@ target_include_directories(CppUnit
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||
)
|
||||
if(WIN32)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_definitions(CppUnit PUBLIC POCO_NO_AUTOMATIC_LIBS)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(CppUnit
|
||||
|
@ -137,6 +137,9 @@ endif()
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(Foundation PUBLIC POCO_OS_FAMILY_WINDOWS UNICODE _UNICODE)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_definitions(Foundation PUBLIC POCO_NO_AUTOMATIC_LIBS)
|
||||
endif()
|
||||
target_link_libraries(Foundation PUBLIC iphlpapi)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user