1
0
Fork 0
forked from suyu/suyu

nx_tzdb: add another safety assertion

This commit is contained in:
K900 2024-01-27 17:28:04 +03:00
parent a2407a2964
commit 3065ab0fd8

View file

@ -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 "")