summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraEclipseCDT4Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-21 13:37:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-03-21 13:37:59 (GMT)
commitfbc0f355eac3b1c700da7a6c6cc30e1303282b9b (patch)
tree0a04899e21e9a1382776d6a1af22bb799d043014 /Source/cmExtraEclipseCDT4Generator.cxx
parentbe9a133cbf6f055179907fabd6efa66d36cd16b5 (diff)
parentd3dcf8d7745a1f1435797cb3a1451ef4ddb7ce2c (diff)
downloadCMake-fbc0f355eac3b1c700da7a6c6cc30e1303282b9b.zip
CMake-fbc0f355eac3b1c700da7a6c6cc30e1303282b9b.tar.gz
CMake-fbc0f355eac3b1c700da7a6c6cc30e1303282b9b.tar.bz2
Merge topic 'eclipse-interface-lib'
d3dcf8d774 Eclipse: Fix extra generator to not crash on interface libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3125
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r--Source/cmExtraEclipseCDT4Generator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx
index a6ce8b7..aece3bc 100644
--- a/Source/cmExtraEclipseCDT4Generator.cxx
+++ b/Source/cmExtraEclipseCDT4Generator.cxx
@@ -845,6 +845,9 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
const std::vector<cmGeneratorTarget*>& targets =
lgen->GetGeneratorTargets();
for (cmGeneratorTarget* target : targets) {
+ if (target->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
+ continue;
+ }
std::vector<std::string> includeDirs;
std::string config = mf->GetSafeDefinition("CMAKE_BUILD_TYPE");
lgen->GetIncludeDirectories(includeDirs, target, "C", config);
@@ -971,6 +974,8 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
virtDir, "", "");
}
} break;
+ case cmStateEnums::INTERFACE_LIBRARY:
+ break;
default:
break;
}