ENH: add edit_cache target for Eclipse (if it's not ccmake, because this
doesn't work inside the log view) Alex
This commit is contained in:
parent
7bd2da3eff
commit
2d8d6dd55d
|
@ -654,12 +654,24 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
|
||||||
|| (t->first=="test")
|
|| (t->first=="test")
|
||||||
|| (t->first=="Experimental")
|
|| (t->first=="Experimental")
|
||||||
|| (t->first=="Nightly")
|
|| (t->first=="Nightly")
|
||||||
|
|| (t->first=="edit_cache")
|
||||||
|| (t->first=="package")
|
|| (t->first=="package")
|
||||||
|| (t->first=="package_source")
|
|| (t->first=="package_source")
|
||||||
|| (t->first=="rebuild_cache") ))
|
|| (t->first=="rebuild_cache") ))
|
||||||
{
|
{
|
||||||
break;
|
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::EXECUTABLE:
|
||||||
case cmTarget::STATIC_LIBRARY:
|
case cmTarget::STATIC_LIBRARY:
|
||||||
|
|
Loading…
Reference in New Issue