From: Christian Kamm Date: Fri, 22 Sep 2017 08:28:08 +0000 (+0200) Subject: Packaging: Make check for theme.qrc more specific #5957 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~701^2~32 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=96a6d64500166b130ee21a4f5df4360b81fe32df;p=nextcloud-desktop.git Packaging: Make check for theme.qrc more specific #5957 Extracted and adjusted from packaging.diff by @jnweiger and @dschmidt --- 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()