forked from qt-creator/qt-creator
CMake Build: Fix MSVC PCH build
Ammends 735078cd80
Change-Id: I01296641ca0681d4fef376087368e247dce011f8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -360,7 +360,8 @@ function(enable_pch target)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
unset(PCH_TARGET)
|
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)
|
set(PCH_TARGET QtCreatorPchGui)
|
||||||
elseif ("Qt5::Core" IN_LIST dependencies)
|
elseif ("Qt5::Core" IN_LIST dependencies)
|
||||||
set(PCH_TARGET QtCreatorPchConsole)
|
set(PCH_TARGET QtCreatorPchConsole)
|
||||||
|
Reference in New Issue
Block a user