summaryrefslogtreecommitdiffstats
path: root/Templates/CMakeWindowsSystemConfig.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-01-07 19:07:32 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-01-07 19:07:32 (GMT)
commit6dfebfdbcd3478d4529b9858039cdc81fd4c02ea (patch)
treeab831b3117e92337281e36e777a118feff592094 /Templates/CMakeWindowsSystemConfig.cmake
parentbcbc8443b5db4a5c59dad4b45166913a0bccced4 (diff)
downloadCMake-6dfebfdbcd3478d4529b9858039cdc81fd4c02ea.zip
CMake-6dfebfdbcd3478d4529b9858039cdc81fd4c02ea.tar.gz
CMake-6dfebfdbcd3478d4529b9858039cdc81fd4c02ea.tar.bz2
Add sizeof some types support
Diffstat (limited to 'Templates/CMakeWindowsSystemConfig.cmake')
-rw-r--r--Templates/CMakeWindowsSystemConfig.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/Templates/CMakeWindowsSystemConfig.cmake b/Templates/CMakeWindowsSystemConfig.cmake
index 7892a89..ec093dd 100644
--- a/Templates/CMakeWindowsSystemConfig.cmake
+++ b/Templates/CMakeWindowsSystemConfig.cmake
@@ -25,6 +25,15 @@ SET (CMAKE_USE_WIN32_THREADS 1 CACHE BOOL
SET (CMAKE_MAKE_PROGRAM "msdev" CACHE STRING
"Program used to build from dsp files.")
+# We will hardcode them for now. Make sure to fix that in the future
+SET (CMAKE_SIZEOF_INT 4 CACHE INTERNAL "Size of int data type")
+SET (CMAKE_SIZEOF_LONG 4 CACHE INTERNAL "Size of long data type")
+SET (CMAKE_SIZEOF_VOID_P 4 CACHE INTERNAL "Size of void* data type")
+SET (CMAKE_SIZEOF_CHAR 1 CACHE INTERNAL "Size of char data type")
+SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
+SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
+SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
+
# The following variables are advanced
MARK_AS_ADVANCED(
@@ -38,4 +47,6 @@ CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_DEBUG
CMAKE_USE_WIN32_THREADS
CMAKE_MAKE_PROGRAM
-) \ No newline at end of file
+)
+
+