Apply suggestions from code review
Co-Authored-By: Markus Pilman <markus@pilman.ch>
This commit is contained in:
parent
b9de844ee7
commit
4ecf58adff
|
@ -200,7 +200,9 @@ else()
|
||||||
if (CLANG)
|
if (CLANG)
|
||||||
add_compile_options()
|
add_compile_options()
|
||||||
# Clang has link errors unless `atomic` is specifically requested.
|
# Clang has link errors unless `atomic` is specifically requested.
|
||||||
|
if(NOT APPLE)
|
||||||
add_link_options(-latomic)
|
add_link_options(-latomic)
|
||||||
|
endif()
|
||||||
if (APPLE OR USE_LIBCXX)
|
if (APPLE OR USE_LIBCXX)
|
||||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-stdlib=libc++>)
|
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-stdlib=libc++>)
|
||||||
add_compile_definitions(WITH_LIBCXX)
|
add_compile_definitions(WITH_LIBCXX)
|
||||||
|
|
Loading…
Reference in New Issue