diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-04-03 22:43:43 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-04-03 22:43:43 (GMT) |
commit | 2d8d6dd55d75efbcf7eaea42ecbb517bbed1b659 (patch) | |
tree | f78d17eccf41d99d58947e12b73f4777310f0966 | |
parent | 7bd2da3eff11d253fd19d5b6757f76a1a4d8c299 (diff) | |
download | CMake-2d8d6dd55d75efbcf7eaea42ecbb517bbed1b659.zip CMake-2d8d6dd55d75efbcf7eaea42ecbb517bbed1b659.tar.gz CMake-2d8d6dd55d75efbcf7eaea42ecbb517bbed1b659.tar.bz2 |
ENH: add edit_cache target for Eclipse (if it's not ccmake, because this
doesn't work inside the log view)
Alex
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index 19bbe22..8572c61 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -654,12 +654,24 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const || (t->first=="test") || (t->first=="Experimental") || (t->first=="Nightly") + || (t->first=="edit_cache") || (t->first=="package") || (t->first=="package_source") || (t->first=="rebuild_cache") )) { break; } + // add the edit_cache target only if it's not ccmake + // otherwise ccmake will be executed in the log view of Eclipse, + // which is no terminal, so curses don't work there, Alex + if (t->first=="edit_cache") + { + if (strstr(mf->GetRequiredDefinition("CMAKE_EDIT_COMMAND"), + "ccmake")!=NULL) + { + break; + } + } } case cmTarget::EXECUTABLE: case cmTarget::STATIC_LIBRARY: |