summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-17 17:59:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-17 17:59:03 +0200
commit6e1464ff852cbb1ad855c3e9cbe5fefe6689ec28 (patch)
tree6bdc5902a6d5f6654d8bd3e4cc42552d73b2822c
parentdc1ae8008de823fe3dac158d16487c4c5f71a832 (diff)
cmake: move unix i18n to share/opentrack/i18n
-rw-r--r--cmake/opentrack-hier.cmake6
-rw-r--r--cmake/opentrack-i18n.cmake3
2 files changed, 5 insertions, 4 deletions
diff --git a/cmake/opentrack-hier.cmake b/cmake/opentrack-hier.cmake
index 7a0659c6..8f778bb2 100644
--- a/cmake/opentrack-hier.cmake
+++ b/cmake/opentrack-hier.cmake
@@ -34,9 +34,9 @@ else()
set(opentrack-doc-pfx "./share/doc/opentrack")
set(opentrack-doc-src-pfx "./share/doc/opentrack/source-code")
set(opentrack-install-rpath "${CMAKE_INSTALL_PREFIX}/${opentrack-hier-pfx}")
- set(opentrack-hier-str ARCHIVE DESTINATION lib/opentrack LIBRARY DESTINATION ${opentrack-hier-pfx} RUNTIME DESTINATION bin)
- set(opentrack-i18n-pfx "./libexec/opentrack/i18n")
- set(opentrack-i18n-path "../libexec/opentrack/i18n")
+ set(opentrack-hier-str ARCHIVE DESTINATION share/opentrack LIBRARY DESTINATION ${opentrack-hier-pfx} RUNTIME DESTINATION bin)
+ set(opentrack-i18n-pfx "./share/opentrack/i18n")
+ set(opentrack-i18n-path "../share/opentrack/i18n")
endif()
function(otr_escape_string var str)
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index 3dd8ac9d..e1c86a39 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -37,7 +37,8 @@ function(otr_i18n_for_target_directory n)
endfunction()
function(otr_merge_translations)
- install(CODE "file(REMOVE_RECURSE \"\${CMAKE_INSTALL_PREFIX}/i18n\")")
+ otr_escape_string(i18n-pfx "${opentrack-i18n-pfx}")
+ install(CODE "file(REMOVE_RECURSE \"\${CMAKE_INSTALL_PREFIX}/${i18n-pfx}\")")
get_property(variant GLOBAL PROPERTY opentrack-variant)
if(NOT ".${variant}" STREQUAL ".default")