summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-22 13:41:07 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-11-22 13:41:07 (GMT)
commit74a0359ee6ef2aee60a9f9300817e6d9ef87bd57 (patch)
tree5b7c7e53daedfc5ce13a852a943003bf456c9359
parent2420ce88f1cab64b9801b58f3c0c8abf7d615a2b (diff)
parentf84a3acd71d4aacd2c553279ab0943d09d83eced (diff)
downloadCMake-74a0359ee6ef2aee60a9f9300817e6d9ef87bd57.zip
CMake-74a0359ee6ef2aee60a9f9300817e6d9ef87bd57.tar.gz
CMake-74a0359ee6ef2aee60a9f9300817e6d9ef87bd57.tar.bz2
Merge topic 'eclipse-subprojects'
f84a3acd Eclipse: Fix indexer for subprojects
-rw-r--r--Source/cmExtraEclipseCDT4Generator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx
index ff2703e..b4fc771 100644
--- a/Source/cmExtraEclipseCDT4Generator.cxx
+++ b/Source/cmExtraEclipseCDT4Generator.cxx
@@ -703,6 +703,14 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
* Also on the cdt-dev list didn't bring any information:
* http://web.archiveorange.com/archive/v/B4NlJDNIpYoOS1SbxFNy
* Alex */
+ // include subprojects directory to the src pathentry
+ // eclipse cdt indexer uses this entries as reference to index source files
+ if (this->GenerateLinkedResources) {
+ xml.StartElement("pathentry");
+ xml.Attribute("kind", "src");
+ xml.Attribute("path", "[Subprojects]");
+ xml.EndElement();
+ }
for (std::vector<std::string>::const_iterator it =
this->SrcLinkedResources.begin();