diff --git a/contrib/its/CMakeLists.txt b/contrib/its/CMakeLists.txt index 58288663..8b6b1220 100644 --- a/contrib/its/CMakeLists.txt +++ b/contrib/its/CMakeLists.txt @@ -1,3 +1,4 @@ # Gettext ITS information for MetaInfo files -install(FILES metainfo.its metainfo.loc DESTINATION share/gettext/its) +install(FILES metainfo.its metainfo.loc + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gettext/its) diff --git a/contrib/vapi/CMakeLists.txt b/contrib/vapi/CMakeLists.txt index eff40800..43219662 100644 --- a/contrib/vapi/CMakeLists.txt +++ b/contrib/vapi/CMakeLists.txt @@ -22,6 +22,6 @@ add_custom_command (OUTPUT ${APPSTREAM_VAPI_FILE} ) add_custom_target(vapi ALL DEPENDS ${APPSTREAM_VAPI_FILE}) -install(FILES ${APPSTREAM_VAPI_FILE} DESTINATION share/vala/vapi) +install(FILES ${APPSTREAM_VAPI_FILE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/vala/vapi) endif() diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 5a366b69..9ae7898a 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -22,5 +22,5 @@ add_custom_target (merge-l10n ALL ) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.appstream.cli.metainfo.xml - DESTINATION share/metainfo + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo ) diff --git a/data/cmake/GObjectIntrospectionMacros.cmake b/data/cmake/GObjectIntrospectionMacros.cmake index 118abf58..92742fdd 100644 --- a/data/cmake/GObjectIntrospectionMacros.cmake +++ b/data/cmake/GObjectIntrospectionMacros.cmake @@ -72,7 +72,7 @@ macro(gir_add_introspections introspections_girs) VERBATIM ) list(APPEND _gir_girs ${CMAKE_CURRENT_BINARY_DIR}/${gir}) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${gir} DESTINATION share/gir-1.0) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${gir} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/gir-1.0) string(REPLACE ".gir" ".typelib" _typelib "${gir}") add_custom_command( diff --git a/data/cmake/documentation.cmake b/data/cmake/documentation.cmake index c490e07c..fa99430a 100644 --- a/data/cmake/documentation.cmake +++ b/data/cmake/documentation.cmake @@ -50,7 +50,7 @@ macro(add_xml_manpages target manpages translations entities) set(commands ${commands} ${CMAKE_CURRENT_BINARY_DIR}/${manpage_name}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${manpage_name} - DESTINATION share/man/man${section}) + DESTINATION ${CMAKE_INSTALL_MANDIR}/man${section}) # Add the translations for the manpage. foreach(translation ${translations}) @@ -79,7 +79,7 @@ macro(add_xml_manpages target manpages translations entities) set(nls-cmd ${nls-cmd} ${transdir}/${manpage}) install(FILES ${transdir}/${manpage} - DESTINATION share/man/${translation}/man${section}) + DESTINATION ${CMAKE_INSTALL_MANDIR}/${translation}/man${section}) endforeach(translation ${translations}) endforeach(manpage ${manpages}) @@ -96,14 +96,14 @@ macro(add_manpages target manpages translations) string(LENGTH ${man} manpage_length) math(EXPR manpage_length ${manpage_length}-1) string(SUBSTRING ${man} ${manpage_length} 1 section) - install(FILES ${man} DESTINATION share/man/man${section}) + install(FILES ${man} DESTINATION ${CMAKE_INSTALL_MANDIR}/man${section}) if (USE_NLS) foreach(translation ${translations}) set(transdir ${CMAKE_CURRENT_BINARY_DIR}/${translation}) add_po4a(man ${man} po/${translation}.po ${transdir}/${man} "") install(FILES ${transdir}/${man} - DESTINATION share/man/${translation}/man${section}) + DESTINATION ${CMAKE_INSTALL_MANDIR}/${translation}/man${section}) set(files ${files} ${transdir}/${man}) endforeach(translation ${translations}) endif(USE_NLS)