skyfire/cmake/macros/CheckPlatform.cmake
AlterEgo ed4ce7abcf Require 64-bit builds
Signed-off-by: AlterEgo <admin@projectskyfire.org>
2026-06-06 12:14:37 -05:00

20 lines
633 B
CMake

#
# This file is part of Project SkyFire https://www.projectskyfire.org.
# See COPYRIGHT file for Copyright information
#
# check what platform we're on and create a simpler test than CMAKE_SIZEOF_VOID_P
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(PLATFORM 64)
MESSAGE(STATUS "Detected 64-bit platform")
else()
MESSAGE(FATAL_ERROR "SkyFire requires a 64-bit compiler and target platform.")
endif()
include("${CMAKE_SOURCE_DIR}/cmake/platform/settings.cmake")
if(WIN32)
include("${CMAKE_SOURCE_DIR}/cmake/platform/win/settings.cmake")
elseif(UNIX)
include("${CMAKE_SOURCE_DIR}/cmake/platform/unix/settings.cmake")
endif()