aboutsummaryrefslogtreecommitdiffhomepage
path: root/externals
diff options
context:
space:
mode:
authorK900 <[email protected]>2024-01-27 17:28:04 +0300
committerK900 <[email protected]>2024-01-27 17:28:04 +0300
commit3065ab0fd861ce7f394425dd72baa16f29b4d09d (patch)
tree81a39b4970dbaa9e3fb0b5d5599539daf77f5f1c /externals
parenta2407a296423d385603a79c53311500f099c34ca (diff)
downloadyuzu-mainline-3065ab0fd861ce7f394425dd72baa16f29b4d09d.tar.gz
yuzu-mainline-3065ab0fd861ce7f394425dd72baa16f29b4d09d.zip
nx_tzdb: add another safety assertion
Diffstat (limited to 'externals')
-rw-r--r--externals/nx_tzdb/NxTzdbCreateHeader.cmake4
1 files changed, 4 insertions, 0 deletions
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 "")