summaryrefslogtreecommitdiffstats
path: root/Source/Checks
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-08-24 17:00:13 (GMT)
committerBrad King <brad.king@kitware.com>2023-08-24 17:05:45 (GMT)
commitfa3c4b6dbfaa4eb1d666c1bea4c759d221b7ad98 (patch)
tree8b4af248ac163e7ab6f1ac71556302d176a8f8e2 /Source/Checks
parentc3977582b77f8b5a4ccacf460a262ff0a75d3cc5 (diff)
downloadCMake-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.cmake2
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)