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()
|
endif()
|
||||||
|
|
||||||
unset(PCH_TARGET)
|
unset(PCH_TARGET)
|
||||||
if ("Qt5::Widgets" IN_LIST dependencies OR
|
if ("Qt5::Widgets" IN_LIST dependencies)
|
||||||
"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)
|
||||||
|
@@ -8,7 +8,7 @@ endif()
|
|||||||
add_qtc_library(qml2puppet_static
|
add_qtc_library(qml2puppet_static
|
||||||
STATIC
|
STATIC
|
||||||
DEPENDS
|
DEPENDS
|
||||||
Qt5::CorePrivate Qt5::Gui
|
Qt5::CorePrivate Qt5::Widgets
|
||||||
PUBLIC_INCLUDES "${SRCDIR}/interfaces"
|
PUBLIC_INCLUDES "${SRCDIR}/interfaces"
|
||||||
SOURCES_PREFIX "${SRCDIR}/interfaces"
|
SOURCES_PREFIX "${SRCDIR}/interfaces"
|
||||||
SOURCES
|
SOURCES
|
||||||
|
Reference in New Issue
Block a user