aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/appstreamtest.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules/appstreamtest.cmake')
-rw-r--r--kde-modules/appstreamtest.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/kde-modules/appstreamtest.cmake b/kde-modules/appstreamtest.cmake
index e524bacb..8361473b 100644
--- a/kde-modules/appstreamtest.cmake
+++ b/kde-modules/appstreamtest.cmake
@@ -1,5 +1,11 @@
-file(READ "${INSTALL_FILES}" out)
-string(REPLACE "\n" ";" out "${out}")
+file(GLOB install_done "${INSTALL_FILES}")
+if (install_done)
+ file(READ "${INSTALL_FILES}" out)
+ string(REPLACE "\n" ";" out "${out}")
+else()
+ message("Not installed yet, skipping")
+ set(out "")
+endif()
set(metadatafiles)
foreach(file IN LISTS out)