From 1645a70e80f42ece83247dbbca7df54ba98b7384 Mon Sep 17 00:00:00 2001 From: Gerhard Stein Date: Fri, 20 Oct 2023 21:08:30 +0200 Subject: [PATCH] Compatibility for older cmake version < 3.20 --- src/engine/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt index e9195eec9..e95b3fb56 100644 --- a/src/engine/CMakeLists.txt +++ b/src/engine/CMakeLists.txt @@ -74,10 +74,7 @@ add_custom_target( COMMAND xxd -i gamelauncher.menu ${CMAKE_CURRENT_BINARY_DIR}/gamelauncher.menu.h ) -target_sources(createGameLauncherMenu - PRIVATE - gameselector.h gameselector.cpp -) +set_property(TARGET createGameLauncherMenu APPEND PROPERTY SOURCES gameselector.h gameselector.cpp) add_dependencies(engine createGameLauncherMenu)