mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
Meta: Ensure cmake fails if we are unable to unzip the CLDR database
This commit is contained in:
parent
9663525542
commit
a57615c2b4
1 changed files with 4 additions and 1 deletions
|
@ -99,7 +99,10 @@ if (ENABLE_UNICODE_DATABASE_DOWNLOAD)
|
|||
endif()
|
||||
if(EXISTS ${CLDR_ZIP_PATH} AND NOT EXISTS ${CLDR_LOCALES_PATH})
|
||||
message(STATUS "Extracting CLDR ${CLDR_LOCALES_SOURCE} from ${CLDR_ZIP_PATH}...")
|
||||
execute_process(COMMAND unzip -q ${CLDR_ZIP_PATH} "${CLDR_LOCALES_SOURCE}/*" -d ${CLDR_PATH})
|
||||
execute_process(COMMAND unzip -q ${CLDR_ZIP_PATH} "${CLDR_LOCALES_SOURCE}/*" -d ${CLDR_PATH} RESULT_VARIABLE unzip_result)
|
||||
if (NOT unzip_result EQUAL 0)
|
||||
message(FATAL_ERROR "Failed to unzip ${CLDR_ZIP_PATH} with status ${unzip_result}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(UNICODE_DATA_HEADER LibUnicode/UnicodeData.h)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue