When using non-Apple clang, link to libatomic

This commit is contained in:
Xiaoge Su 2021-08-04 22:11:54 -07:00 committed by Aaron Molitor
parent 38ac3481ff
commit f6beda6623
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ else()
add_compile_options()
# 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)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-stdlib=libc++>)