aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-12-31 09:28:54 +0000
committerBen Harris <bjh21@bjh21.me.uk>2022-12-31 16:18:53 +0000
commitf63810fbc89158d5637e4f554436c80140569024 (patch)
tree4faf15ce6217d9b1454d76650e11fb7ae7fa90e2
parent0363e9e7fd49a240a39794904d38d4738f7c9d2a (diff)
downloadpuzzles-f63810fbc89158d5637e4f554436c80140569024.zip
puzzles-f63810fbc89158d5637e4f554436c80140569024.tar.gz
puzzles-f63810fbc89158d5637e4f554436c80140569024.tar.bz2
puzzles-f63810fbc89158d5637e4f554436c80140569024.tar.xz
Don't use Null Game's extra source files for all GUI programs
All the not-quite-puzzle GUI programs (only galaxieseditor at this point) were using the extra source files from Null Game, presumably as a convenient way of asking not to have an icon on platforms where icons are provided as extra source files. Unfortunately, this all went wrong if Null Game did have a save file for an icon, causing CMake to complain about multiple definitions of a target. Now these programs look for extra files under their own names, which will work just as well since those have no save files to generate icons from either.
-rw-r--r--cmake/setup.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/setup.cmake b/cmake/setup.cmake
index e8e0309..344d028 100644
--- a/cmake/setup.cmake
+++ b/cmake/setup.cmake
@@ -124,7 +124,7 @@ function(guiprogram NAME)
"" "COMPILE_DEFINITIONS" "" ${ARGN})
if(build_gui_programs)
- get_platform_puzzle_extra_source_files(extra_files nullgame)
+ get_platform_puzzle_extra_source_files(extra_files ${NAME})
add_executable(${NAME} ${OPT_UNPARSED_ARGUMENTS} ${extra_files})
target_link_libraries(${NAME}
common ${platform_gui_libs} ${platform_libs})