CMake Build: Fix PCH builds for non MSVC platforms

Ammends 2129a04c5d

Change-Id: I50fc1bf2e5ef4742243aa08a4e5ad2bfee459eb1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Cristian Adam
2020-10-08 12:18:33 +02:00
parent d02c69d1bc
commit b9cd1cc15e
2 changed files with 2 additions and 3 deletions

View File

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

View File

@@ -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