summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-i18n.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-i18n.cmake')
-rw-r--r--cmake/opentrack-i18n.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake
index e89f5c42..f3b53895 100644
--- a/cmake/opentrack-i18n.cmake
+++ b/cmake/opentrack-i18n.cmake
@@ -58,7 +58,7 @@ function(otr_i18n_for_target_directory n)
endfunction()
function(otr_merge_translations)
- otr_escape_string(i18n-pfx "${opentrack-i18n-pfx}")
+ otr_escape_string(i18n-pfx "${opentrack-i18n}")
install(CODE "file(REMOVE_RECURSE \"\${CMAKE_INSTALL_PREFIX}/${i18n-pfx}\")")
foreach(i ${opentrack_all-translations})
@@ -68,7 +68,7 @@ function(otr_merge_translations)
set(qm-output "${CMAKE_BINARY_DIR}/${i}.qm")
# whines about duplicate messages since tracker-pt-base is static
- if(WIN32)
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(to-null "2>NUL")
else()
set(to-null "2>/dev/null")
@@ -92,7 +92,7 @@ function(otr_merge_translations)
add_dependencies(i18n-lrelease ${target-name})
install(FILES "${qm-output}"
- DESTINATION "${CMAKE_INSTALL_PREFIX}/${opentrack-i18n-pfx}"
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/${opentrack-i18n}"
PERMISSIONS ${opentrack-perms-file})
endforeach()
endfunction()