Apply suggestions from code review

Co-Authored-By: Markus Pilman <markus@pilman.ch>
This commit is contained in:
Daniel Smith 2020-01-28 21:32:13 -05:00 committed by GitHub
parent b9de844ee7
commit 4ecf58adff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -200,7 +200,9 @@ else()
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)