ENH: Simplify makefile ref to interactive editor
The CMAKE_EDIT_COMMAND make variable need not be constructed with ConvertToOutputForExisting. The CMAKE_COMMAND variable works fine without it.
This commit is contained in:
parent
8bffd5af36
commit
416bf5730f
|
@ -697,13 +697,13 @@ cmLocalUnixMakefileGenerator3
|
||||||
<< " -E remove -f\n"
|
<< " -E remove -f\n"
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
|
||||||
if(this->Makefile->GetDefinition("CMAKE_EDIT_COMMAND"))
|
if(const char* edit_cmd =
|
||||||
|
this->Makefile->GetDefinition("CMAKE_EDIT_COMMAND"))
|
||||||
{
|
{
|
||||||
makefileStream
|
makefileStream
|
||||||
<< "# The program to use to edit the cache.\n"
|
<< "# The program to use to edit the cache.\n"
|
||||||
<< "CMAKE_EDIT_COMMAND = "
|
<< "CMAKE_EDIT_COMMAND = "
|
||||||
<< (this->ConvertToOutputForExisting(
|
<< this->Convert(edit_cmd,FULL,SHELL) << "\n"
|
||||||
this->Makefile->GetDefinition("CMAKE_EDIT_COMMAND"))) << "\n"
|
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue