From b9cd1cc15e2574528fb40fcbc1d5219f63b5f132 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 8 Oct 2020 12:18:33 +0200 Subject: [PATCH] CMake Build: Fix PCH builds for non MSVC platforms Ammends 2129a04c5d61d5a55a76045f2727e5b7f9048c6b Change-Id: I50fc1bf2e5ef4742243aa08a4e5ad2bfee459eb1 Reviewed-by: Orgad Shaneh --- cmake/QtCreatorAPIInternal.cmake | 3 +-- src/tools/qml2puppet/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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