chiark / gitweb /
Don't try to build the icons when cross-compiling.
authorSimon Tatham <anakin@pobox.com>
Thu, 1 Apr 2021 16:54:51 +0000 (17:54 +0100)
committerSimon Tatham <anakin@pobox.com>
Thu, 1 Apr 2021 16:55:21 +0000 (17:55 +0100)
The puzzle icons are built by compiling and running a preliminary
set of puzzle binaries. We can't do that if the binaries won't run
on the build host.

cmake/platforms/unix.cmake

index 49a1b1f85d1fb42b32884b53c3a15c1cb7f97669..aeff79702500695c0d913a30ca721453312ccb64 100644 (file)
@@ -28,6 +28,12 @@ set(platform_gui_libs ${GTK_LIBRARIES})
 set(platform_libs -lm)
 
 set(build_icons TRUE)
+if(CMAKE_CROSSCOMPILING)
+  # The puzzle icons are built by compiling and running a preliminary
+  # set of puzzle binaries. We can't do that if the binaries won't run
+  # on the build host.
+  set(build_icons FALSE)
+endif()
 
 if(DEFINED STRICT AND (CMAKE_C_COMPILER_ID MATCHES "GNU" OR
                        CMAKE_C_COMPILER_ID MATCHES "Clang"))