aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-06 21:50:38 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-07 23:32:32 +0200
commit6712c8ef22e12647f417cfc23eefe52bcb3906a2 (patch)
treed54ed4a2ec36005b4d7de7b26d530b02c263876f /CMakeLists.txt
parent7b8c0725f0d1ff0f4ae4b2f24e512ffff73bf647 (diff)
downloadjancity-6712c8ef22e12647f417cfc23eefe52bcb3906a2.tar.gz
CMakeLists.txt: move target-specific logic away
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4dfad29..23f26a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,14 +13,9 @@ if(NOT PS1_BUILD AND NOT HOST_BUILD AND NOT WIN9X_BUILD)
endif()
if(PS1_BUILD)
- if("$ENV{PSXSDK_PATH}" STREQUAL "")
- message(FATAL_ERROR "Please set PSXSDK_PATH env variable first")
- endif()
-
- set(CMAKE_C_COMPILER psx-gcc)
- set(CMAKE_AR mipsel-unknown-elf-ar)
+ include("cmake/ps1-toolchain.cmake")
elseif(WIN9X_BUILD)
- set(CMAKE_C_COMPILER i386-mingw32-gcc)
+ include("cmake/win9x-toolchain.cmake")
endif()
project(rts)