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

fix: Disable libatomic link for windows arm64

CLANGARM64 does not have libatomic, disable it

Signed-off-by: Coia Prant <coiaprant@gmail.com>
This commit is contained in:
Coia Prant
2025-05-25 14:08:23 +08:00
committed by GitHub
parent e7f4cebe81
commit 53155196f4

View File

@@ -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)