summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-26 17:16:00 -0400
committerAndreas Kling <kling@serenityos.org>2021-08-26 23:40:23 +0200
commita57615c2b42c04625231c51c70688f47502e802b (patch)
tree5bcff877b6aa8e2c376bf1224afbc4699b032f46
parent9663525542affc35baecbfa6196a1032f2e3abd0 (diff)
downloadserenity-a57615c2b42c04625231c51c70688f47502e802b.zip
Meta: Ensure cmake fails if we are unable to unzip the CLDR database
-rw-r--r--Userland/Libraries/LibUnicode/unicode_data.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Libraries/LibUnicode/unicode_data.cmake b/Userland/Libraries/LibUnicode/unicode_data.cmake
index e798b9c1e4..15ccc8a588 100644
--- a/Userland/Libraries/LibUnicode/unicode_data.cmake
+++ b/Userland/Libraries/LibUnicode/unicode_data.cmake
@@ -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)