summaryrefslogtreecommitdiff
path: root/src/cmake/macros/CheckPlatform.cmake
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-12-21 00:48:33 +0100
committerYehonal <yehonal.azeroth@gmail.com>2017-12-21 00:48:33 +0100
commit685a89e03fb100e9a0a194bfce4efede202e733b (patch)
tree55bd1e69b8062f1f9f6a10f4dec4a98b0fb3dec2 /src/cmake/macros/CheckPlatform.cmake
parent17332304fdf129076d0196010602350d5750c808 (diff)
fixed cmake
Diffstat (limited to 'src/cmake/macros/CheckPlatform.cmake')
-rw-r--r--src/cmake/macros/CheckPlatform.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cmake/macros/CheckPlatform.cmake b/src/cmake/macros/CheckPlatform.cmake
new file mode 100644
index 0000000000..5ef5f6d9a5
--- /dev/null
+++ b/src/cmake/macros/CheckPlatform.cmake
@@ -0,0 +1,18 @@
+# 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 64)
+ MESSAGE(STATUS "Detected 64-bit platform")
+else()
+ set(PLATFORM 32)
+ MESSAGE(STATUS "Detected 32-bit platform")
+endif()
+
+include("${CMAKE_SOURCE_DIR}/src/cmake/platform/settings.cmake")
+
+if(WIN32)
+ include("${CMAKE_SOURCE_DIR}/src/cmake/platform/win/settings.cmake")
+elseif(UNIX)
+ include("${CMAKE_SOURCE_DIR}/src/cmake/platform/unix/settings.cmake")
+endif()
+
+include("${CMAKE_SOURCE_DIR}/src/cmake/platform/after_platform.cmake")