summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeTestCCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-04-05 21:06:00 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-04-05 21:06:00 (GMT)
commit3ca108141990ff8372f9b4842e9a29a72bb817c2 (patch)
tree20fb82295df7dc343297780615130a39429d983c /Modules/CMakeTestCCompiler.cmake
parent96e2956ec80dc302edd2a94b4114ab0fec273cbf (diff)
downloadCMake-3ca108141990ff8372f9b4842e9a29a72bb817c2.zip
CMake-3ca108141990ff8372f9b4842e9a29a72bb817c2.tar.gz
CMake-3ca108141990ff8372f9b4842e9a29a72bb817c2.tar.bz2
BUG: try to address Bug 1673 .
Diffstat (limited to 'Modules/CMakeTestCCompiler.cmake')
-rw-r--r--Modules/CMakeTestCCompiler.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeTestCCompiler.cmake b/Modules/CMakeTestCCompiler.cmake
index af9420f..f36d5c8 100644
--- a/Modules/CMakeTestCCompiler.cmake
+++ b/Modules/CMakeTestCCompiler.cmake
@@ -32,5 +32,7 @@ ELSE(NOT CMAKE_C_COMPILER_WORKS)
"Determining if the C compiler works passed with "
"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)
SET(CMAKE_C_COMPILER_WORKS 1 CACHE INTERNAL "")
ENDIF(NOT CMAKE_C_COMPILER_WORKS)