1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

Meta: Use extract_path() in extract_tzdb_file()

No behavior change.
This commit is contained in:
Nico Weber 2024-01-29 20:44:39 -05:00 committed by Tim Flynn
parent ffcd5cf443
commit 90490d9fb8

View file

@ -39,9 +39,7 @@ set(TZDB_ZONE_1970_SOURCE zone1970.tab)
set(TZDB_ZONE_1970_PATH "${TZDB_PATH}/${TZDB_ZONE_1970_SOURCE}")
function(extract_tzdb_file source path)
if(EXISTS "${TZDB_ZIP_PATH}" AND NOT EXISTS "${path}")
file(ARCHIVE_EXTRACT INPUT "${TZDB_ZIP_PATH}" DESTINATION "${TZDB_PATH}" PATTERNS "${source}")
endif()
extract_path("${TZDB_PATH}" "${TZDB_ZIP_PATH}" "${source}" "${path}")
endfunction()
if (ENABLE_TIME_ZONE_DATABASE_DOWNLOAD)