mirror of
https://github.com/boostorg/uuid.git
synced 2026-01-19 04:42:16 +00:00
Do not link to libatomic on vanilla Clang on macOS. Refs #183.
This commit is contained in:
@@ -32,19 +32,12 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT WIN32)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT WIN32 AND NOT APPLE)
|
||||
|
||||
set(_def_linkatomic ON)
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user