diff options
author | Julian Ospald <hasufell@posteo.de> | 2016-09-29 23:56:59 +0300 |
---|---|---|
committer | Julian Ospald <hasufell@posteo.de> | 2016-09-29 23:56:59 +0300 |
commit | 223fef7a99661608ae7f7aef426fbd1174878080 (patch) | |
tree | f1c756a8f102f922956a0bb1352c980905a8e616 /cmake | |
parent | c09f02ec77b890c6ba5331397a3eccd2c0137a1c (diff) |
CMAKE: fix GNUInstallDirs usage
* fix locale install destination
* fix include dir install destination
* don't assume CMAKE_INSTALL_BINDIR is relative
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/GETTEXT.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/GETTEXT.cmake b/cmake/GETTEXT.cmake index ec4987004..368a6bec6 100644 --- a/cmake/GETTEXT.cmake +++ b/cmake/GETTEXT.cmake @@ -27,7 +27,7 @@ function(gettext po_dir package_name) if(("$ENV{LINGUAS}" MATCHES "(^| )${lang}( |$)") OR (NOT DEFINED ENV{LINGUAS})) set(mo_file ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) add_custom_command(OUTPUT ${mo_file} COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo_file} ${po_file} DEPENDS ${po_file}) - install(FILES ${mo_file} DESTINATION share/locale/${lang}/LC_MESSAGES RENAME ${package_name}.mo) + install(FILES ${mo_file} DESTINATION ${CMAKE_INSTALL_LOCALEDIR}/${lang}/LC_MESSAGES RENAME ${package_name}.mo) set(mo_files ${mo_files} ${mo_file}) endif() endforeach() |