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:
parent
ffcd5cf443
commit
90490d9fb8
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue