Ver Fonte

cmake: Check for target is Windows

MinGW has issues building tzdb2nx due to the headers being Windows
specific. Download for this toolchain as well.
lat9nq há 3 anos atrás
pai
commit
d9e2824c4e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      externals/nx_tzdb/CMakeLists.txt

+ 1 - 1
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()