Use libc++ with clang
This commit is contained in:
parent
3fbee998ae
commit
24543509c1
1 changed files with 16 additions and 1 deletions
|
|
@ -74,9 +74,24 @@ if (DESKTOP_APP_USE_ALLOCATION_TRACER)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT DESKTOP_APP_USE_PACKAGED)
|
if (NOT DESKTOP_APP_USE_PACKAGED)
|
||||||
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
target_link_options(common_options
|
||||||
|
INTERFACE
|
||||||
|
-static-libstdc++
|
||||||
|
)
|
||||||
|
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
|
target_link_static_libraries(common_options
|
||||||
|
INTERFACE
|
||||||
|
c++
|
||||||
|
c++abi
|
||||||
|
)
|
||||||
|
target_link_options(common_options
|
||||||
|
INTERFACE
|
||||||
|
-nostdlib++
|
||||||
|
)
|
||||||
|
endif()
|
||||||
target_link_options(common_options
|
target_link_options(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
-static-libstdc++
|
|
||||||
-pthread
|
-pthread
|
||||||
-rdynamic
|
-rdynamic
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue