forked from qt-creator/qt-creator
CMake: Do not process UtilityType build targets
Those produce no direct artifacts, so there is no need to check those Change-Id: Ic10720c1f3c3a7b602c45b870bfd39604754ddee Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -276,6 +276,9 @@ void CMakeProject::parseCMakeOutput()
|
||||
|
||||
QHash<QString, QStringList> targetDataCache;
|
||||
foreach (const CMakeBuildTarget &cbt, buildTargets()) {
|
||||
if (cbt.targetType == UtilityType)
|
||||
continue;
|
||||
|
||||
// CMake shuffles the include paths that it reports via the CodeBlocks generator
|
||||
// So remove the toolchain include paths, so that at least those end up in the correct
|
||||
// place.
|
||||
@@ -697,7 +700,7 @@ void CMakeProject::updateApplicationAndDeploymentTargets()
|
||||
DeploymentData deploymentData;
|
||||
|
||||
foreach (const CMakeBuildTarget &ct, buildTargets()) {
|
||||
if (ct.executable.isEmpty())
|
||||
if (ct.targetType == UtilityType)
|
||||
continue;
|
||||
|
||||
if (ct.targetType == ExecutableType || ct.targetType == DynamicLibraryType)
|
||||
|
||||
Reference in New Issue
Block a user