From b515cb478e3a2f6533cd722942bf01f9cc7d1087 Mon Sep 17 00:00:00 2001 From: swirl Date: Sun, 9 Jan 2022 13:34:01 -0500 Subject: [PATCH] fix empty exec line when binary_name is unset --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7439491d..7d3e8bab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,8 +122,9 @@ if (Qt5_POSITION_INDEPENDENT_CODE) SET(CMAKE_POSITION_INDEPENDENT_CODE ON) endif() -####################################### Secrets ####################################### +####################################### Program Info ####################################### +set(Launcher_APP_BINARY_NAME "polymc" CACHE STRING "Name of the Launcher binary") add_subdirectory(program_info) ####################################### Install layout ####################################### @@ -196,7 +197,6 @@ elseif(Launcher_LAYOUT_REAL STREQUAL "lin-nodeps") install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/LauncherScript" DESTINATION ${BUNDLE_DEST_DIR} RENAME ${Launcher_Name}) elseif(Launcher_LAYOUT_REAL STREQUAL "lin-system") - set(Launcher_APP_BINARY_NAME "polymc" CACHE STRING "Name of the Launcher binary") set(Launcher_BINARY_DEST_DIR "bin" CACHE STRING "Path to the binary directory") set(Launcher_LIBRARY_DEST_DIR "lib${LIB_SUFFIX}" CACHE STRING "Path to the library directory") set(Launcher_SHARE_DEST_DIR "share/polymc" CACHE STRING "Path to the shared data directory")