aboutsummaryrefslogtreecommitdiff
path: root/cmake/ps1.cmake
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 /cmake/ps1.cmake
parent7b8c0725f0d1ff0f4ae4b2f24e512ffff73bf647 (diff)
downloadjancity-6712c8ef22e12647f417cfc23eefe52bcb3906a2.tar.gz
CMakeLists.txt: move target-specific logic away
Diffstat (limited to 'cmake/ps1.cmake')
-rw-r--r--cmake/ps1.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/ps1.cmake b/cmake/ps1.cmake
index e9ae0f6..6481eaa 100644
--- a/cmake/ps1.cmake
+++ b/cmake/ps1.cmake
@@ -1,3 +1,7 @@
+if("$ENV{PSXSDK_PATH}" STREQUAL "")
+ message(FATAL_ERROR "Please set PSXSDK_PATH env variable first")
+endif()
+
file(MAKE_DIRECTORY ${cdroot})
target_link_directories(${PROJECT_NAME} PUBLIC $ENV{PSXSDK_PATH}/lib)
target_link_libraries(${PROJECT_NAME} PUBLIC -lpsx -lfixmath)