From 1e54ac6cf9751c417e5eb675e8d79a280661d921 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 12 Apr 2017 01:38:08 +0200 Subject: cmake: don't barf out on nonexistent files in lrelease --- cmake/opentrack-install.cmake | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'cmake') 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}") -- cgit v1.2.3