Add flag CMAKE_INSTALL_PREFIX for translation and desktop

Although the flag -DCMAKE_INSTALL_PREFIX has been passed in the shell,
it is not used in the installation of ‘’.desktop’’ and ‘translation’’.

By explicitly setting CMAKE_INSTALL_PREFIX,
this will make'make' the correct installation file to the specified directory.
pull/30/head
gesangtome 4 years ago committed by GitHub
parent 31b3b7f156
commit b60bada2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,8 +104,8 @@ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES
cutefish-settings.desktop
DESTINATION /usr/share/applications/
DESTINATION ${CMAKE_INSTALL_PREFIX}/usr/share/applications/
COMPONENT Runtime
)
install(FILES ${QM_FILES} DESTINATION /usr/share/${PROJECT_NAME}/translations)
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/usr/share/${PROJECT_NAME}/translations)

Loading…
Cancel
Save