summaryrefslogtreecommitdiffstats
path: root/Templates/CMakeBorlandWindowsSystemConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Templates/CMakeBorlandWindowsSystemConfig.cmake')
-rw-r--r--Templates/CMakeBorlandWindowsSystemConfig.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Templates/CMakeBorlandWindowsSystemConfig.cmake b/Templates/CMakeBorlandWindowsSystemConfig.cmake
index af2cf1a..5e3500c 100644
--- a/Templates/CMakeBorlandWindowsSystemConfig.cmake
+++ b/Templates/CMakeBorlandWindowsSystemConfig.cmake
@@ -80,6 +80,15 @@ SET (CMAKE_MODULE_SUFFIX ".dll" CACHE STRING
FIND_PROGRAM(CMAKE_MAKE_PROGRAM make ${BCB_BIN_PATH})
+# 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")
+
MARK_AS_ADVANCED(
CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELWITHDEBINFO