From 96a6d64500166b130ee21a4f5df4360b81fe32df Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Fri, 22 Sep 2017 10:28:08 +0200 Subject: [PATCH] Packaging: Make check for theme.qrc more specific #5957 Extracted and adjusted from packaging.diff by @jnweiger and @dschmidt --- src/gui/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index f7cc0a9db..bf577b454 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -5,7 +5,7 @@ add_subdirectory(updater) #TODO Move resources files qt_add_resources(MIRALL_RC_SRC ../../client.qrc) -if ( IS_DIRECTORY ${OEM_THEME_DIR} ) +if (EXISTS "${OEM_THEME_DIR}/theme.qrc") qt_add_resources(MIRALL_RC_SRC ${OEM_THEME_DIR}/theme.qrc) set(theme_dir ${OEM_THEME_DIR}/theme) else()