use CPACK_PACKAGING_INSTALL_PREFIX instead of CMAKE_INSTALL_PREFIX (#1187)

Gosh, why does it fall back to /usr/local?!
This commit is contained in:
Fabian Greffrath 2023-08-23 14:59:13 +02:00 committed by GitHub
parent 95da1a060e
commit 06bc276c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,8 +155,8 @@ elseif(LINUX)
--appimage-extract-and-run
--appdir=${CPACK_TEMPORARY_DIRECTORY}
--executable=$<TARGET_FILE:woof>
--desktop-file=${CPACK_TEMPORARY_DIRECTORY}/${CMAKE_INSTALL_PREFIX}/share/applications/io.github.fabiangreffrath.woof.desktop
--icon-file=${CPACK_TEMPORARY_DIRECTORY}/${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps/woof.png
--desktop-file=${CPACK_TEMPORARY_DIRECTORY}/${CPACK_PACKAGING_INSTALL_PREFIX}/share/applications/io.github.fabiangreffrath.woof.desktop
--icon-file=${CPACK_TEMPORARY_DIRECTORY}/${CPACK_PACKAGING_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps/woof.png
--output=appimage)
]])
else()