diff options
author | Brad King <brad.king@kitware.com> | 2023-08-24 17:00:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-08-24 17:05:45 (GMT) |
commit | fa3c4b6dbfaa4eb1d666c1bea4c759d221b7ad98 (patch) | |
tree | 8b4af248ac163e7ab6f1ac71556302d176a8f8e2 /Source/Checks | |
parent | c3977582b77f8b5a4ccacf460a262ff0a75d3cc5 (diff) | |
download | CMake-fa3c4b6dbfaa4eb1d666c1bea4c759d221b7ad98.zip CMake-fa3c4b6dbfaa4eb1d666c1bea4c759d221b7ad98.tar.gz CMake-fa3c4b6dbfaa4eb1d666c1bea4c759d221b7ad98.tar.bz2 |
Source: Link libatomic when needed on any Linux architecture
Extend commit 78bbd58545 (Source: Link libatomic when needed on Linux
32-bit ARM, 2023-07-27, v3.27.2~10^2) to check for libatomic on more
architectures.
Fixes: #25204
Diffstat (limited to 'Source/Checks')
-rw-r--r-- | Source/Checks/cm_cxx_features.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index 98d5eff..0262746 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -96,7 +96,7 @@ else() set(CMake_HAVE_CXX_FILESYSTEM FALSE) endif() -if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR MATCHES "armv7l|sparc") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|aarch64)$") cm_check_cxx_feature(atomic_builtin) if(NOT CMake_HAVE_CXX_ATOMIC_BUILTIN) set(cm_check_cxx_feature_LINK_LIBRARIES atomic) |