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")