Merge pull request #2610 from Daniel-B-Smith/clang-link
Add link option specific to Clang
This commit is contained in:
commit
99a1a3694b
|
@ -199,6 +199,10 @@ else()
|
|||
endif()
|
||||
if (CLANG)
|
||||
add_compile_options()
|
||||
# Clang has link errors unless `atomic` is specifically requested.
|
||||
if(NOT APPLE)
|
||||
add_link_options(-latomic)
|
||||
endif()
|
||||
if (APPLE OR USE_LIBCXX)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-stdlib=libc++>)
|
||||
add_compile_definitions(WITH_LIBCXX)
|
||||
|
|
Loading…
Reference in New Issue