From d9e2824c4e64b5bcfe3acbeaafdfe278320087d2 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Fri, 16 Jun 2023 05:32:11 -0400 Subject: [PATCH] cmake: Check for target is Windows MinGW has issues building tzdb2nx due to the headers being Windows specific. Download for this toolchain as well. --- externals/nx_tzdb/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/nx_tzdb/CMakeLists.txt b/externals/nx_tzdb/CMakeLists.txt index 1ec72d418..db00e9d40 100644 --- a/externals/nx_tzdb/CMakeLists.txt +++ b/externals/nx_tzdb/CMakeLists.txt @@ -20,7 +20,7 @@ endif() if ("${GNU_DATE}" STREQUAL "GNU_DATE-NOTFOUND") set(CAN_BUILD_NX_TZDB false) endif() -if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows") +if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") # tzdb_to_nx currently requires a posix-compliant host set(CAN_BUILD_NX_TZDB false) endif()