When using non-Apple clang, link to libatomic
This commit is contained in:
parent
38ac3481ff
commit
f6beda6623
|
@ -263,7 +263,7 @@ else()
|
||||||
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)
|
if(NOT APPLE)
|
||||||
#add_link_options(-latomic)
|
add_link_options(-latomic)
|
||||||
endif()
|
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++>)
|
||||||
|
|
Loading…
Reference in New Issue