From 2129a04c5d61d5a55a76045f2727e5b7f9048c6b Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 7 Oct 2020 12:38:26 +0200 Subject: [PATCH] CMake Build: Fix MSVC PCH build Ammends 735078cd805709ed08cefe5195ce0535f6b7acc7 Change-Id: I01296641ca0681d4fef376087368e247dce011f8 Reviewed-by: Eike Ziller Reviewed-by: Cristian Adam --- cmake/QtCreatorAPIInternal.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/QtCreatorAPIInternal.cmake b/cmake/QtCreatorAPIInternal.cmake index 5404680da0f..6105c9f00e8 100644 --- a/cmake/QtCreatorAPIInternal.cmake +++ b/cmake/QtCreatorAPIInternal.cmake @@ -360,7 +360,8 @@ function(enable_pch target) endif() unset(PCH_TARGET) - if ("Qt5::Widgets" IN_LIST dependencies) + if ("Qt5::Widgets" IN_LIST dependencies OR + "Qt5::Gui" IN_LIST dependencies) set(PCH_TARGET QtCreatorPchGui) elseif ("Qt5::Core" IN_LIST dependencies) set(PCH_TARGET QtCreatorPchConsole)