summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-01-18 23:43:03 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-01-18 23:43:03 +0100
commit6d59902ccfc6338e7004b6a999c2abfd49f445f4 (patch)
treed00a810c68f134cce401830ef61facd97d82498c /storage
parent8d9f3d76154cb52137eb8eb1adc46ee794087ce1 (diff)
downloadmariadb-git-6d59902ccfc6338e7004b6a999c2abfd49f445f4.tar.gz
Do not run GCC atomic builtins tests on MSVC
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/CMakeLists.txt b/storage/innobase/CMakeLists.txt
index 1230ab3a10a..22380549590 100644
--- a/storage/innobase/CMakeLists.txt
+++ b/storage/innobase/CMakeLists.txt
@@ -35,7 +35,8 @@ IF(UNIX)
ENDIF()
- # either define HAVE_IB_GCC_ATOMIC_BUILTINS or not
+IF(NOT MSVC)
+# either define HAVE_IB_GCC_ATOMIC_BUILTINS or not
IF(NOT CMAKE_CROSSCOMPILING)
CHECK_C_SOURCE_RUNS(
"
@@ -107,6 +108,7 @@ IF(HAVE_IB_ATOMIC_PTHREAD_T_GCC)
ADD_DEFINITIONS(-DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1)
ENDIF()
+ENDIF(NOT MSVC)
# Solaris atomics
IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")