diff options
author | Stefan Wildemann <metalstrolch@users.noreply.github.com> | 2017-04-24 11:19:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 11:19:49 +0200 |
commit | f221cd197fc8ef915b76c3b7b170ccd76178ad74 (patch) | |
tree | 90782890a6d126983d22244e473eb7c3cca9420c /po | |
parent | c25b3e102955e12ff1409c0a85a15f848e2d8225 (diff) | |
download | navit-f221cd197fc8ef915b76c3b7b170ccd76178ad74.tar.gz |
Fix: Allow unusual building (#215)R7404
* Support unusual building
This patch updates navits cmake system to allow more unusual build and
install path configurations as well as renaming the navit binary. This
sis required for restricted environments like Sailfish OS harbour that
do not follow usual path conventions.
You can now:
redefine the binary name (NAVIT_BINARY)
control the translation file names (PACKAGE)
select the library directory (LIB_DIR)
select the share directory (SHARE_DIR)
select the locales directory (LOCALE_DIR)
select the images directory (IMAGE_DIR)
select the man directory (MAN_DIR)
the .desktop file is updated and the man file is renamed according to this and the install prefix is still honoured.
Diffstat (limited to 'po')
-rw-r--r-- | po/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index de83bb52b..1967005b4 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -84,7 +84,7 @@ foreach (LANG ${LANGUAGES}) COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo" "${PROJECT_BINARY_DIR}/locale/${LANG}/LC_MESSAGES/navit.mo" ) SET(MOFILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo ${MOFILES}) - INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo DESTINATION ${LOCALE_DIR}/${LANG}/LC_MESSAGES RENAME navit.mo) + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo DESTINATION ${LOCALE_DIR}/${LANG}/LC_MESSAGES RENAME ${PACKAGE}.mo) endforeach(LANG ${LANGUAGES}) add_custom_target(locales ALL DEPENDS ${MOFILES}) |