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 /cmake | |
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 'cmake')
-rw-r--r-- | cmake/navit_macros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/navit_macros.cmake b/cmake/navit_macros.cmake index 3baf5c9ed..6591d7463 100644 --- a/cmake/navit_macros.cmake +++ b/cmake/navit_macros.cmake @@ -70,7 +70,7 @@ macro(module_add_library MODULE_NAME ) set_target_properties( ${MODULE_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.libs") install(TARGETS ${MODULE_NAME} - DESTINATION ${LIB_DIR}/navit/${${MODULE_NAME}_TYPE} + DESTINATION ${LIB_DIR}/${${MODULE_NAME}_TYPE} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) endif() endmacro(module_add_library) |