diff options
author | Brad King <brad.king@kitware.com> | 2008-10-09 19:08:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-10-09 19:08:53 (GMT) |
commit | 416bf5730f33b5760bbcea9b4fb871cc9d717c6a (patch) | |
tree | 8834fa57391649a4e04b25c95758b4a0d148798f /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 8bffd5af368ecbf8e49ee0b898dfa89635668859 (diff) | |
download | CMake-416bf5730f33b5760bbcea9b4fb871cc9d717c6a.zip CMake-416bf5730f33b5760bbcea9b4fb871cc9d717c6a.tar.gz CMake-416bf5730f33b5760bbcea9b4fb871cc9d717c6a.tar.bz2 |
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.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index b27855f..a2595d9 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -697,13 +697,13 @@ cmLocalUnixMakefileGenerator3 << " -E remove -f\n" << "\n"; - if(this->Makefile->GetDefinition("CMAKE_EDIT_COMMAND")) + if(const char* edit_cmd = + this->Makefile->GetDefinition("CMAKE_EDIT_COMMAND")) { makefileStream << "# The program to use to edit the cache.\n" << "CMAKE_EDIT_COMMAND = " - << (this->ConvertToOutputForExisting( - this->Makefile->GetDefinition("CMAKE_EDIT_COMMAND"))) << "\n" + << this->Convert(edit_cmd,FULL,SHELL) << "\n" << "\n"; } |