diff options
author | Brad King <brad.king@kitware.com> | 2019-03-21 13:37:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-03-21 13:37:59 (GMT) |
commit | fbc0f355eac3b1c700da7a6c6cc30e1303282b9b (patch) | |
tree | 0a04899e21e9a1382776d6a1af22bb799d043014 /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | be9a133cbf6f055179907fabd6efa66d36cd16b5 (diff) | |
parent | d3dcf8d7745a1f1435797cb3a1451ef4ddb7ce2c (diff) | |
download | CMake-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.cxx | 5 |
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; } |