diff options
| author | Simon Tatham <anakin@pobox.com> | 2021-04-01 17:54:51 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2021-04-01 17:55:21 +0100 |
| commit | e763b9ead86df6a92666525f8d2ed0385e251c61 (patch) | |
| tree | 767d6977b37826e81a9fd9eab202b58fad7b1404 | |
| parent | dd8164b77407fef0c56b426eb0b9a49ddeed13fa (diff) | |
| download | puzzles-e763b9ead86df6a92666525f8d2ed0385e251c61.zip puzzles-e763b9ead86df6a92666525f8d2ed0385e251c61.tar.gz puzzles-e763b9ead86df6a92666525f8d2ed0385e251c61.tar.bz2 puzzles-e763b9ead86df6a92666525f8d2ed0385e251c61.tar.xz | |
Don't try to build the icons when cross-compiling.
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.
| -rw-r--r-- | cmake/platforms/unix.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/platforms/unix.cmake b/cmake/platforms/unix.cmake index 49a1b1f..aeff797 100644 --- a/cmake/platforms/unix.cmake +++ b/cmake/platforms/unix.cmake @@ -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")) |