summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-install.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-08 06:23:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-08 06:23:21 +0100
commit0c2135d90b326d07683c616dffe6ad1e94aaacbf (patch)
tree90a6a8ba7c1ce77ce126d3e9221e74159d33de93 /cmake/opentrack-install.cmake
parent17ce3e1e69de7bd3fe06008202ae9fa2f8ff272a (diff)
cmake: fix translations always updating
Diffstat (limited to 'cmake/opentrack-install.cmake')
-rw-r--r--cmake/opentrack-install.cmake11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake
index 9fc280d6..3406007b 100644
--- a/cmake/opentrack-install.cmake
+++ b/cmake/opentrack-install.cmake
@@ -65,10 +65,13 @@ function(merge_translations)
list(APPEND deps "i18n-module-${k}")
endforeach()
- add_custom_target(i18n-lang-${i}
- COMMAND "${Qt5_DIR}/../../../bin/lrelease" -nounfinished -silent ${ts} -qm "${qm-output}"
- DEPENDS ${deps}
- )
+ if(NOT "${ts}" STREQUAL "")
+ add_custom_target(i18n-lang-${i}
+ COMMAND "${Qt5_DIR}/../../../bin/lrelease" -nounfinished -silent ${ts} -qm "${qm-output}"
+ DEPENDS ${deps})
+ else()
+ add_custom_target(i18n-lang-${i} DEPENDS ${deps})
+ endif()
list(APPEND all-deps "i18n-lang-${i}")
install(FILES "${qm-output}" DESTINATION "${opentrack-i18n-pfx}" RENAME "${i}.qm" ${opentrack-perms})
endforeach()