2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

Also link to libatomic when compiler is Clang

This commit is contained in:
Peter Dimov
2024-10-12 21:06:25 +03:00
parent 4e70d7bd16
commit 4c4d877ff1

View File

@@ -22,7 +22,7 @@ target_link_libraries(boost_uuid
target_compile_features(boost_uuid INTERFACE cxx_std_11)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC"))
target_link_libraries(boost_uuid INTERFACE atomic)