Skip to content

Commit

Permalink
Also link to libatomic when compiler is Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 12, 2024
1 parent 4e70d7b commit 4c4d877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4c4d877

Please sign in to comment.