Packaging: Make check for theme.qrc more specific #5957
authorChristian Kamm <mail@ckamm.de>
Fri, 22 Sep 2017 08:28:08 +0000 (10:28 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:37 +0000 (22:01 +0200)
Extracted and adjusted from packaging.diff by @jnweiger and @dschmidt

src/gui/CMakeLists.txt

index f7cc0a9db6fb96105a186ecb9447570eb35465a8..bf577b454af58d56fb52632f3e5c66b5a9b7ceb5 100644 (file)
@@ -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()