summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-19 13:29:44 (GMT)
committerBrad King <brad.king@kitware.com>2005-08-19 13:29:44 (GMT)
commit7a3240160e56ff13cef66063c25c65db27ab36f4 (patch)
treeec7d7e2616713879276d04c0dac0b28f72969819 /Modules
parent8346edbff0a8587b456c4c0ce1223a7a9ea1f8d6 (diff)
downloadCMake-7a3240160e56ff13cef66063c25c65db27ab36f4.zip
CMake-7a3240160e56ff13cef66063c25c65db27ab36f4.tar.gz
CMake-7a3240160e56ff13cef66063c25c65db27ab36f4.tar.bz2
BUG: Need to test void* not "void *" because the Intel compiler icc expands the asterisk. Thanks to Filipe Sousa for the patch.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeTestCCompiler.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeTestCCompiler.cmake b/Modules/CMakeTestCCompiler.cmake
index 4c534bb..f9aee68 100644
--- a/Modules/CMakeTestCCompiler.cmake
+++ b/Modules/CMakeTestCCompiler.cmake
@@ -33,6 +33,7 @@ ELSE(NOT CMAKE_C_COMPILER_WORKS)
"the following output:\n${OUTPUT}\n\n")
ENDIF(C_TEST_WAS_RUN)
INCLUDE (${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
- CHECK_TYPE_SIZE("void *" CMAKE_SIZEOF_VOID_P)
+ # Check the size of void*. This used to be "void *" but icc expands the *.
+ CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
SET(CMAKE_C_COMPILER_WORKS 1 CACHE INTERNAL "")
ENDIF(NOT CMAKE_C_COMPILER_WORKS)