Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@posteo.de>2016-09-29 23:56:59 +0300
committerJulian Ospald <hasufell@posteo.de>2016-09-29 23:56:59 +0300
commit223fef7a99661608ae7f7aef426fbd1174878080 (patch)
treef1c756a8f102f922956a0bb1352c980905a8e616 /cmake
parentc09f02ec77b890c6ba5331397a3eccd2c0137a1c (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.cmake2
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()