aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros/CheckPlatform.cmake
diff options
context:
space:
mode:
authorclick <none@none>2010-09-20 20:58:57 +0200
committerclick <none@none>2010-09-20 20:58:57 +0200
commitf69c252f1dacd7c985eb7ce1a360384690fcb2dd (patch)
tree035b6a27bf9ff040a4f53b021b984adee3435b6b /cmake/macros/CheckPlatform.cmake
parentce2d4e9a20608f69c29a31d4bdf28bb0142b3fbb (diff)
Buildsystem/Compilers: Adjust buildfiles slightly:
- Set SSE2 compile-flags only when used on 32-bit platforms (only used on x86 platforms, as x64 / Itanium has this as a standard) - Clean up/merge some of the 64-bit/32-bit compiler options - Clean up use of the PLATFORM variable (now sets PLATFORM 32 or PLATFORM 64, shaving off the CMAKE_SIZEOF_VOID_P test slightly) --HG-- branch : trunk
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()