From 3065ab0fd861ce7f394425dd72baa16f29b4d09d Mon Sep 17 00:00:00 2001 From: K900 Date: Sat, 27 Jan 2024 17:28:04 +0300 Subject: nx_tzdb: add another safety assertion --- externals/nx_tzdb/NxTzdbCreateHeader.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'externals') diff --git a/externals/nx_tzdb/NxTzdbCreateHeader.cmake b/externals/nx_tzdb/NxTzdbCreateHeader.cmake index 8c29e1167..95606d862 100644 --- a/externals/nx_tzdb/NxTzdbCreateHeader.cmake +++ b/externals/nx_tzdb/NxTzdbCreateHeader.cmake @@ -11,6 +11,10 @@ execute_process( WORKING_DIRECTORY ${ZONE_PATH} OUTPUT_VARIABLE FILE_LIST) +if (NOT FILE_LIST) + message(FATAL_ERROR "No timezone files found in directory ${ZONE_PATH}, did the download fail?") +endif() + set(DIRECTORY_NAME ${HEADER_NAME}) set(FILE_DATA "") -- cgit v1.2.3