aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorJanus Troelsen <janus.troelsen@passiv.de>2017-08-24 13:26:55 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2017-08-24 14:05:49 +0000
commit117e0ff91275b4bc06dd5383f19e7028c5ef6ff8 (patch)
tree05cf37b5aed849aac582638c76ac46df5c7e9cce /sources
parentc14949413fac467a94ba7dbc0e613fa1c3594358 (diff)
Fix QtUiTools not to depend on Qt5Designer being present
Task-number: PYSIDE-552 Change-Id: Iff8dd7247bfec94be0cf4f5cbcfbfca1eb44d209 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside2/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside2/CMakeLists.txt b/sources/pyside2/CMakeLists.txt
index cde16369..c4b97e86 100644
--- a/sources/pyside2/CMakeLists.txt
+++ b/sources/pyside2/CMakeLists.txt
@@ -287,7 +287,8 @@ else()
set(DISABLE_QtScriptTools 1)
ENDIF()
COLLECT_MODULE_IF_FOUND(Svg opt)
-if(Qt5Designer_FOUND)
+find_package(Qt5UiTools)
+if(Qt5UiTools_FOUND)
COLLECT_MODULE_IF_FOUND(UiTools opt)
else()
set(DISABLE_QtUiTools 1)
@@ -402,7 +403,6 @@ else()
endif()
add_subdirectory(libpyside)
-find_package(Qt5UiTools)
find_package(Qt5Designer)
if(Qt5UiTools_FOUND AND Qt5Designer_FOUND)
add_subdirectory(plugins)