BUG: Need to test void* not "void *" because the Intel compiler icc expands the asterisk. Thanks to Filipe Sousa for the patch.

This commit is contained in:
Brad King 2005-08-19 09:29:44 -04:00
parent 8346edbff0
commit 7a3240160e
1 changed files with 2 additions and 1 deletions

View File

@ -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)