Merge pull request #8192 from sfc-gh-sgwydir/FDBCORE-2926

Linking atomic explicitly is not needed
This commit is contained in:
Steve Atherton 2022-09-15 19:53:00 -07:00 committed by GitHub
commit 59b04d46cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -290,7 +290,8 @@ else()
add_link_options(-stdlib=libc++ -Wl,-build-id=sha1)
endif()
endif()
if (NOT APPLE)
if (NOT APPLE AND NOT USE_LIBCXX)
message(STATUS "Linking libatomic")
add_link_options(-latomic)
endif()
if (OPEN_FOR_IDE)