From b5770acd50215744b5f9649b1ba4386be4b452c5 Mon Sep 17 00:00:00 2001 From: glx22 Date: Tue, 9 Mar 2021 17:37:08 +0100 Subject: Codechange: [CMake] Add checks for baseset script parameters --- cmake/scripts/Baseset.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cmake') 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) -- cgit v1.2.3-54-g00ecf