diff options
author | Brad King <brad.king@kitware.com> | 2023-08-25 13:41:12 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-08-25 13:41:27 (GMT) |
commit | 02765cc9c43ad45c1639f5b6b3c7c5a0747e545b (patch) | |
tree | f35d9eabde6317e2427220d815eb43591e31e68f /Source/Checks | |
parent | 09651ff53e133028ecbe0c34e1ae4b8b0fe7b311 (diff) | |
parent | fa3c4b6dbfaa4eb1d666c1bea4c759d221b7ad98 (diff) | |
download | CMake-02765cc9c43ad45c1639f5b6b3c7c5a0747e545b.zip CMake-02765cc9c43ad45c1639f5b6b3c7c5a0747e545b.tar.gz CMake-02765cc9c43ad45c1639f5b6b3c7c5a0747e545b.tar.bz2 |
Merge topic 'cxx-atomic'
fa3c4b6dbf Source: Link libatomic when needed on any Linux architecture
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8756
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) |