aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros/CheckPlatform.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/macros/CheckPlatform.cmake')
-rw-r--r--cmake/macros/CheckPlatform.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmake/macros/CheckPlatform.cmake b/cmake/macros/CheckPlatform.cmake
index 0cdf5d8ffbf..addc619207f 100644
--- a/cmake/macros/CheckPlatform.cmake
+++ b/cmake/macros/CheckPlatform.cmake
@@ -1,10 +1,9 @@
-# default to x86 platform. We'll check for X64 in a bit
-set(PLATFORM X86)
-
+# check what platform we're on (64-bit or 32-bit), and create a simpler test than CMAKE_SIZEOF_VOID_P
if(CMAKE_SIZEOF_VOID_P MATCHES 8)
- set(PLATFORM X64)
+ set(PLATFORM 64)
MESSAGE(STATUS "Detected 64-bit platform")
else()
+ set(PLATFORM 32)
MESSAGE(STATUS "Detected 32-bit platform")
endif()