Support Macos linking c++ stl in CMakeLists.txt
All checks were successful
Run UnitTests / build-and-run-tests (push) Successful in 4m28s
All checks were successful
Run UnitTests / build-and-run-tests (push) Successful in 4m28s
This commit is contained in:
parent
4afec4ddb9
commit
29804dddd0
1 changed files with 6 additions and 0 deletions
|
@ -25,9 +25,15 @@ add_library(UDPC ${UDPC_SOURCES})
|
||||||
|
|
||||||
# Enforce linking with libstdc++ even with C targets.
|
# Enforce linking with libstdc++ even with C targets.
|
||||||
# Doesn't affect conan, so conanfile.py was also modified for this.
|
# Doesn't affect conan, so conanfile.py was also modified for this.
|
||||||
|
if(APPLE)
|
||||||
|
set_target_properties(UDPC PROPERTIES
|
||||||
|
INTERFACE_LINK_LIBRARIES "libc++"
|
||||||
|
)
|
||||||
|
elseif(UNIX)
|
||||||
set_target_properties(UDPC PROPERTIES
|
set_target_properties(UDPC PROPERTIES
|
||||||
INTERFACE_LINK_LIBRARIES "stdc++"
|
INTERFACE_LINK_LIBRARIES "stdc++"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
set_target_properties(UDPC PROPERTIES VERSION ${UDPC_VERSION} SOVERSION ${UDPC_SOVERSION})
|
set_target_properties(UDPC PROPERTIES VERSION ${UDPC_VERSION} SOVERSION ${UDPC_SOVERSION})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue