diff --git a/cmake/QtCreatorAPIInternal.cmake b/cmake/QtCreatorAPIInternal.cmake index 6105c9f00e8..5404680da0f 100644 --- a/cmake/QtCreatorAPIInternal.cmake +++ b/cmake/QtCreatorAPIInternal.cmake @@ -360,8 +360,7 @@ function(enable_pch target) endif() unset(PCH_TARGET) - if ("Qt5::Widgets" IN_LIST dependencies OR - "Qt5::Gui" IN_LIST dependencies) + if ("Qt5::Widgets" IN_LIST dependencies) set(PCH_TARGET QtCreatorPchGui) elseif ("Qt5::Core" IN_LIST dependencies) set(PCH_TARGET QtCreatorPchConsole) diff --git a/src/tools/qml2puppet/CMakeLists.txt b/src/tools/qml2puppet/CMakeLists.txt index 7d1d32c19b9..3d2e53a48c3 100644 --- a/src/tools/qml2puppet/CMakeLists.txt +++ b/src/tools/qml2puppet/CMakeLists.txt @@ -8,7 +8,7 @@ endif() add_qtc_library(qml2puppet_static STATIC DEPENDS - Qt5::CorePrivate Qt5::Gui + Qt5::CorePrivate Qt5::Widgets PUBLIC_INCLUDES "${SRCDIR}/interfaces" SOURCES_PREFIX "${SRCDIR}/interfaces" SOURCES