From 4c4d877ff18b710d3990a3f317f20865fa186454 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 12 Oct 2024 21:06:25 +0300 Subject: [PATCH] Also link to libatomic when compiler is Clang --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40fbe91..0440edc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)