mirror of
https://github.com/Vita3K/Vita3K.git
synced 2024-05-31 19:17:49 -04:00
1c37f70273
- Integrates Boost build procedure into the CMake configure process - Adds CMake toolchain files for easier environment setup
19 lines
513 B
CMake
19 lines
513 B
CMake
set(CMAKE_SYSTEM_NAME Darwin)
|
|
set(CMAKE_SYSTEM_PROCESSOR x64)
|
|
|
|
# Fixes issue with setting CMAKE_SYSYEM_NAME manually and the cross-compilation check
|
|
if(CMAKE_HOST_SYSTEM_NAME STREQUAL CMAKE_SYSTEM_NAME)
|
|
set(CMAKE_CROSSCOMPILING FALSE)
|
|
else()
|
|
set(CMAKE_CROSSCOMPILING TRUE)
|
|
endif()
|
|
|
|
# Compiler settings
|
|
set(CMAKE_C_COMPILER clang)
|
|
set(CMAKE_CXX_COMPILER clang++)
|
|
|
|
# Disables cross-compilation
|
|
if (CMAKE_CROSSCOMPILING)
|
|
message(FATAL_ERROR "Vita3K cross-compilation for macOS isn't supported.")
|
|
endif()
|