From a766d89b407afddd29a95152ee4e7c79eaf8547d Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Sat, 21 Dec 2019 21:53:55 +0100 Subject: [PATCH] CMake build system: Depend QmlProjectManager tests on configuration Don't build QmlProjectManager tests if the QmlProjectManager plugin is disbled in the configuration. Change-Id: I354a23567528d02ba9d4207202800ff0175d9a6b Reviewed-by: Cristian Adam --- tests/auto/qml/qmlprojectmanager/fileformat/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/qml/qmlprojectmanager/fileformat/CMakeLists.txt b/tests/auto/qml/qmlprojectmanager/fileformat/CMakeLists.txt index 71de6011898..98d3b389862 100644 --- a/tests/auto/qml/qmlprojectmanager/fileformat/CMakeLists.txt +++ b/tests/auto/qml/qmlprojectmanager/fileformat/CMakeLists.txt @@ -1,3 +1,7 @@ +if (NOT TARGET QmlProjectManager) + return() +endif() + get_target_property(QmlProjectManagerSources QmlProjectManager SOURCES) foreach(source IN LISTS QmlProjectManagerSources) if (source MATCHES "fileformat")