diff options
author | Brad King <brad.king@kitware.com> | 2018-05-21 15:03:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-05-21 15:04:04 (GMT) |
commit | 64ec064212d27c91bb88967f9c242f131f2663e7 (patch) | |
tree | 82ddb17bec5ba695206df0a2a2be80f92d8d4b5c /Source | |
parent | 7b42ffce09b589b8a7b1af348920e9c4808bd69f (diff) | |
parent | fd0da95f6333b7a12f4f9b22e60adb429430d283 (diff) | |
download | CMake-64ec064212d27c91bb88967f9c242f131f2663e7.zip CMake-64ec064212d27c91bb88967f9c242f131f2663e7.tar.gz CMake-64ec064212d27c91bb88967f9c242f131f2663e7.tar.bz2 |
Merge topic 'eclipse-custom-content'
fd0da95f63 Eclipse: Add property to include additional contents in .cproject file
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2088
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index 258c9ca..e7279d9 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -1001,6 +1001,13 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const xml.EndElement(); // project xml.EndElement(); // storageModule + + // Append additional cproject contents without applying any XML formatting + if (const char* extraCProjectContents = + mf->GetState()->GetGlobalProperty("ECLIPSE_EXTRA_CPROJECT_CONTENTS")) { + fout << extraCProjectContents; + } + xml.EndElement(); // cproject } |