summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_atomic.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-07-27 15:01:48 (GMT)
committerBrad King <brad.king@kitware.com>2023-07-27 15:07:21 (GMT)
commit78bbd585451752e7b23eafbfa1dc009fd5cda750 (patch)
treee815d3a849a5c4f6dfa3eefac0411ab11861c68a /Source/Checks/cm_cxx_atomic.cxx
parent2d8aeaca07ecbcff6e5ac59f462fe99d656a3fce (diff)
downloadCMake-78bbd585451752e7b23eafbfa1dc009fd5cda750.zip
CMake-78bbd585451752e7b23eafbfa1dc009fd5cda750.tar.gz
CMake-78bbd585451752e7b23eafbfa1dc009fd5cda750.tar.bz2
Source: Link libatomic when needed on Linux 32-bit ARM
Fixes: #25114
Diffstat (limited to 'Source/Checks/cm_cxx_atomic.cxx')
-rw-r--r--Source/Checks/cm_cxx_atomic.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_atomic.cxx b/Source/Checks/cm_cxx_atomic.cxx
new file mode 100644
index 0000000..098a7a7
--- /dev/null
+++ b/Source/Checks/cm_cxx_atomic.cxx
@@ -0,0 +1,6 @@
+#include <atomic>
+int main()
+{
+ std::atomic<long long>(0).load();
+ return 0;
+}