瀏覽代碼

cmake: Add warn about cross compiling, disable android

lat9nq 3 年之前
父節點
當前提交
1fa16bc594
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      externals/nx_tzdb/CMakeLists.txt

+ 3 - 1
externals/nx_tzdb/CMakeLists.txt

@@ -20,8 +20,10 @@ endif()
 if ("${GNU_DATE}" STREQUAL "GNU_DATE-NOTFOUND")
     set(CAN_BUILD_NX_TZDB false)
 endif()
-if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
+if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR ANDROID)
     # tzdb_to_nx currently requires a posix-compliant host
+    # MinGW and Android are handled here due to the executable format being different from the host system
+    # TODO (lat9nq): cross-compiling support
     set(CAN_BUILD_NX_TZDB false)
 endif()