diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-13 11:44:30 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-13 12:48:24 +0100 |
commit | bb2b344d3300cfc2f13211cd12956e23c98459de (patch) | |
tree | b1f03ec51e5172b39a1ae6289278b4502f915231 /CMakeLists.txt | |
parent | b96572774fd13fea7bc0ec0110bf0bde1e898ffe (diff) | |
download | PrismLauncher-bb2b344d3300cfc2f13211cd12956e23c98459de.tar.gz PrismLauncher-bb2b344d3300cfc2f13211cd12956e23c98459de.tar.bz2 PrismLauncher-bb2b344d3300cfc2f13211cd12956e23c98459de.zip |
fix: define jars path relative to application root
Fixes #117
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5250d0ff..6cabab7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,7 +207,8 @@ elseif(UNIX) set(LAUNCHER_METAINFO_DEST_DIR "share/metainfo" CACHE STRING "Path to the metainfo directory") set(LAUNCHER_ICON_DEST_DIR "share/icons/hicolor/scalable/apps" CACHE STRING "Path to the scalable icon directory") - set(Launcher_APP_BINARY_DEFS "-DMULTIMC_JARS_LOCATION=${CMAKE_INSTALL_PREFIX}/${JARS_DEST_DIR}") + # jars path is determined on runtime, relative to "Application root path", generally /usr for Launcher_PORTABLE=0 + set(Launcher_APP_BINARY_DEFS "-DLAUNCHER_JARS_LOCATION=${JARS_DEST_DIR}") install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_Desktop} DESTINATION ${LAUNCHER_DESKTOP_DEST_DIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_MetaInfo} DESTINATION ${LAUNCHER_METAINFO_DEST_DIR}) |