summaryrefslogtreecommitdiffstats
path: root/cmake/modules/CheckAtomic.cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2009-12-06 00:06:33 +0000
committerOscar Fuentes <ofv@wanadoo.es>2009-12-06 00:06:33 +0000
commitc595e6ca0a889ab51efe7a1c8109f8e96d9d4869 (patch)
tree7e5823315ef31fe3c59f63cf255357d0ce1ad4b6 /cmake/modules/CheckAtomic.cmake
parent87e98075cc69580c199d8455e4581ce32697eb25 (diff)
downloadexternal_llvm-c595e6ca0a889ab51efe7a1c8109f8e96d9d4869.zip
external_llvm-c595e6ca0a889ab51efe7a1c8109f8e96d9d4869.tar.gz
external_llvm-c595e6ca0a889ab51efe7a1c8109f8e96d9d4869.tar.bz2
CheckAtomic.cmake: Put all C++ code inside CHECK_CXX_SOURCE_COMPILES.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/CheckAtomic.cmake')
-rw-r--r--cmake/modules/CheckAtomic.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/modules/CheckAtomic.cmake b/cmake/modules/CheckAtomic.cmake
index 6c4da66..f40ff4d 100644
--- a/cmake/modules/CheckAtomic.cmake
+++ b/cmake/modules/CheckAtomic.cmake
@@ -2,11 +2,10 @@
INCLUDE(CheckCXXSourceCompiles)
+CHECK_CXX_SOURCE_COMPILES("
#ifdef _MSC_VER
#include <windows.h>
#endif
-
-CHECK_CXX_SOURCE_COMPILES("
int main() {
#ifdef _MSC_VER
volatile LONG val = 1;