diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-17 07:35:35 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-17 07:48:46 +0200 |
commit | 4cbdce17b69f4ab1f8da29c6718bec09e11b8125 (patch) | |
tree | 4dcef8819eacf2fb3d096a041dfaa714d193b658 /externals/nx_tzdb/NxTzdbCreateHeader.cmake | |
parent | cmake: Add warn about cross compiling, disable android (diff) | |
download | yuzu-4cbdce17b69f4ab1f8da29c6718bec09e11b8125.tar yuzu-4cbdce17b69f4ab1f8da29c6718bec09e11b8125.tar.gz yuzu-4cbdce17b69f4ab1f8da29c6718bec09e11b8125.tar.bz2 yuzu-4cbdce17b69f4ab1f8da29c6718bec09e11b8125.tar.lz yuzu-4cbdce17b69f4ab1f8da29c6718bec09e11b8125.tar.xz yuzu-4cbdce17b69f4ab1f8da29c6718bec09e11b8125.tar.zst yuzu-4cbdce17b69f4ab1f8da29c6718bec09e11b8125.zip |
Diffstat (limited to '')
-rw-r--r-- | externals/nx_tzdb/NxTzdbCreateHeader.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/externals/nx_tzdb/NxTzdbCreateHeader.cmake b/externals/nx_tzdb/NxTzdbCreateHeader.cmake index 69166aa5b..8c29e1167 100644 --- a/externals/nx_tzdb/NxTzdbCreateHeader.cmake +++ b/externals/nx_tzdb/NxTzdbCreateHeader.cmake @@ -15,7 +15,7 @@ set(DIRECTORY_NAME ${HEADER_NAME}) set(FILE_DATA "") foreach(ZONE_FILE ${FILE_LIST}) - if ("${ZONE_FILE}" STREQUAL "\n") + if (ZONE_FILE STREQUAL "\n") continue() endif() @@ -26,13 +26,13 @@ foreach(ZONE_FILE ${FILE_LIST}) foreach(I RANGE 0 ${ZONE_DATA_LEN} 2) math(EXPR BREAK_LINE "(${I} + 2) % 38") - string(SUBSTRING "${ZONE_DATA}" "${I}" "2" HEX_DATA) - if ("${HEX_DATA}" STREQUAL "") + string(SUBSTRING "${ZONE_DATA}" "${I}" 2 HEX_DATA) + if (NOT HEX_DATA) break() endif() string(APPEND FILE_DATA "0x${HEX_DATA},") - if ("${BREAK_LINE}" STREQUAL "0") + if (BREAK_LINE EQUAL 0) string(APPEND FILE_DATA "\n") else() string(APPEND FILE_DATA " ") |