summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-03-09 17:37:08 +0100
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-03-09 22:42:25 +0100
commitb5770acd50215744b5f9649b1ba4386be4b452c5 (patch)
treec28006e808eba3194e52875cec9f98f1523068fe /cmake
parent47e11fa3f24d04bd52acd86cd00a2df880314ca0 (diff)
downloadopenttd-b5770acd50215744b5f9649b1ba4386be4b452c5.tar.xz
Codechange: [CMake] Add checks for baseset script parameters
Diffstat (limited to 'cmake')
-rw-r--r--cmake/scripts/Baseset.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/scripts/Baseset.cmake b/cmake/scripts/Baseset.cmake
index 7cf60629d..cb5fb5704 100644
--- a/cmake/scripts/Baseset.cmake
+++ b/cmake/scripts/Baseset.cmake
@@ -4,6 +4,16 @@ cmake_minimum_required(VERSION 3.5)
# Create a single baseset meta file with the correct translations.
#
+if(NOT BASESET_SOURCE_FILE)
+ message(FATAL_ERROR "Script needs BASESET_SOURCE_FILE defined")
+endif()
+if(NOT BASESET_BINARY_FILE)
+ message(FATAL_ERROR "Script needs BASESET_BINARY_FILE defined")
+endif()
+if(NOT BASESET_EXTRAGRF_FILE)
+ message(FATAL_ERROR "Script needs BASESET_EXTRAGRF_FILE defined")
+endif()
+
set(ARGC 1)
set(ARG_READ NO)