summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-12 01:38:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-12 01:47:44 +0200
commit1e54ac6cf9751c417e5eb675e8d79a280661d921 (patch)
treebcb7b47efc3ae9f74fcd1b81d15658563af39510 /cmake
parentdbcfe5e186cfd75a8dcc2ab5f3567cc0171178cc (diff)
cmake: don't barf out on nonexistent files in lrelease
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-install.cmake12
1 files changed, 11 insertions, 1 deletions
diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake
index 73d76886..0dd5cc7d 100644
--- a/cmake/opentrack-install.cmake
+++ b/cmake/opentrack-install.cmake
@@ -56,7 +56,17 @@ function(merge_translations)
foreach(i ${opentrack-all-translations})
get_property(ts-files GLOBAL PROPERTY "opentrack-ts-files-${i}")
- get_property(ts-deps GLOBAL PROPERTY "opentrack-ts-targets-${i}")
+ #get_property(ts-deps GLOBAL PROPERTY "opentrack-ts-targets-${i}")
+
+ set(ts-files_ "")
+
+ foreach(k ${ts-files})
+ if(EXISTS "${k}")
+ list(APPEND ts-files_ "${k}")
+ endif()
+ endforeach()
+
+ set(ts-files "${ts-files_}")
foreach(k ${ts-files})
list(APPEND all-ts-files "${k}")