summaryrefslogtreecommitdiff
path: root/Modules/CMakeTestCCompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-19 09:29:44 -0400
committerBrad King <brad.king@kitware.com>2005-08-19 09:29:44 -0400
commit7a3240160e56ff13cef66063c25c65db27ab36f4 (patch)
treeec7d7e2616713879276d04c0dac0b28f72969819 /Modules/CMakeTestCCompiler.cmake
parent8346edbff0a8587b456c4c0ce1223a7a9ea1f8d6 (diff)
downloadcmake-7a3240160e56ff13cef66063c25c65db27ab36f4.tar.gz
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/CMakeTestCCompiler.cmake')
-rw-r--r--Modules/CMakeTestCCompiler.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeTestCCompiler.cmake b/Modules/CMakeTestCCompiler.cmake
index 4c534bb0f8..f9aee6892b 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)