summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraEclipseCDT4Generator.cxx
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2014-09-26 12:38:54 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-16 13:54:39 (GMT)
commit6e6e0c4048b1500edfc8c27a0fc567997b494a56 (patch)
treed79d1db7768a28dc55051f00a91ab1e8b0c907e1 /Source/cmExtraEclipseCDT4Generator.cxx
parent55d6aa36a522f2dd7849ccd53d9e743a88f8c7a1 (diff)
downloadCMake-6e6e0c4048b1500edfc8c27a0fc567997b494a56.zip
CMake-6e6e0c4048b1500edfc8c27a0fc567997b494a56.tar.gz
CMake-6e6e0c4048b1500edfc8c27a0fc567997b494a56.tar.bz2
Eclipse: Add org.eclipse.cdt.core.cnature to CXX projects (#15068)
Since commit v3.0.0-rc1~335^2~1 (eclipse: Add natures for Eclipse based on enabled languages, 2013-08-29) CXX projects got only "ccnature", but Eclipse itself also adds "cnature" when creating C++ projects. Fix this by adding both for CXX projects.
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r--Source/cmExtraEclipseCDT4Generator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx
index 74ba9a6..cef4f10 100644
--- a/Source/cmExtraEclipseCDT4Generator.cxx
+++ b/Source/cmExtraEclipseCDT4Generator.cxx
@@ -62,6 +62,7 @@ void cmExtraEclipseCDT4Generator
if (*lit == "CXX")
{
this->Natures.insert("org.eclipse.cdt.core.ccnature");
+ this->Natures.insert("org.eclipse.cdt.core.cnature");
}
else if (*lit == "C")
{