summaryrefslogtreecommitdiffstats
path: root/externals
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-16 10:32:31 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-16 10:32:31 +0200
commite9701a3cda5907a2789457bc93771d87915920d4 (patch)
tree3bdda99cbc1abcafcb3afe773c07fc4609707473 /externals
parentexternals: submodule tzdb_to_nx (diff)
downloadyuzu-e9701a3cda5907a2789457bc93771d87915920d4.tar
yuzu-e9701a3cda5907a2789457bc93771d87915920d4.tar.gz
yuzu-e9701a3cda5907a2789457bc93771d87915920d4.tar.bz2
yuzu-e9701a3cda5907a2789457bc93771d87915920d4.tar.lz
yuzu-e9701a3cda5907a2789457bc93771d87915920d4.tar.xz
yuzu-e9701a3cda5907a2789457bc93771d87915920d4.tar.zst
yuzu-e9701a3cda5907a2789457bc93771d87915920d4.zip
Diffstat (limited to 'externals')
-rw-r--r--externals/nx_tzdb/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/externals/nx_tzdb/CMakeLists.txt b/externals/nx_tzdb/CMakeLists.txt
index d7e69a2ef..c15110fd6 100644
--- a/externals/nx_tzdb/CMakeLists.txt
+++ b/externals/nx_tzdb/CMakeLists.txt
@@ -24,11 +24,12 @@ if ("${GNU_DATE}" STREQUAL "GNU_DATE-NOTFOUND")
set(CAN_BUILD_NX_TZDB false)
endif()
-if (NOT ${CAN_BUILD_NX_TZDB} AND NOT EXISTS ${NX_TZDB_ARCHIVE})
- set(NX_TZDB_VERSION "220816")
+set(NX_TZDB_VERSION "220816")
+set(NX_TZDB_ARCHIVE "${CMAKE_CURRENT_BINARY_DIR}/${NX_TZDB_VERSION}.zip")
+
+if ((NOT ${CAN_BUILD_NX_TZDB} OR ${YUZU_DOWNLOAD_TIME_ZONE_DATA}) AND NOT EXISTS ${NX_TZDB_ARCHIVE})
set(NX_TZDB_DOWNLOAD_URL "https://github.com/lat9nq/tzdb_to_nx/releases/download/${NX_TZDB_VERSION}/${NX_TZDB_VERSION}.zip")
- set(NX_TZDB_ARCHIVE "${CMAKE_CURRENT_BINARY_DIR}/${NX_TZDB_VERSION}.zip")
set(NX_TZDB_DIR "${CMAKE_CURRENT_BINARY_DIR}/nx_tzdb" CACHE PATH "Path to Switch-style time zone data")
file(DOWNLOAD ${NX_TZDB_DOWNLOAD_URL} ${NX_TZDB_ARCHIVE})