aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorswirl <swurl@swurl.xyz>2022-01-09 13:34:01 -0500
committerswirl <swurl@swurl.xyz>2022-01-09 13:34:01 -0500
commitb515cb478e3a2f6533cd722942bf01f9cc7d1087 (patch)
tree3caac5d14c1604f69603f2c1651f8f0011cedde6
parent29e9d65cb2bd5a237e7b6b0dc2be077499828178 (diff)
downloadPrismLauncher-b515cb478e3a2f6533cd722942bf01f9cc7d1087.tar.gz
PrismLauncher-b515cb478e3a2f6533cd722942bf01f9cc7d1087.tar.bz2
PrismLauncher-b515cb478e3a2f6533cd722942bf01f9cc7d1087.zip
fix empty exec line when binary_name is unset
-rw-r--r--CMakeLists.txt4
1 files 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")