forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user