From 53155196f4406040b9304c5f54a102d52295a727 Mon Sep 17 00:00:00 2001 From: Coia Prant Date: Sun, 25 May 2025 14:08:23 +0800 Subject: [PATCH] fix: Disable libatomic link for windows arm64 CLANGARM64 does not have libatomic, disable it Signed-off-by: Coia Prant --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0008801..f51670f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_CXX_COMPILER_FRONTEND_VA endif() +# CLANGARM64 does not have libatomic, disable it +if(MINGW AND CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64") + + set(_def_linkatomic OFF) + +endif() + option(BOOST_UUID_LINK_LIBATOMIC "Boost.UUID: link Boost::uuid to libatomic" ${_def_linkatomic}) unset(_def_linkatomic)