From 416bf5730f33b5760bbcea9b4fb871cc9d717c6a Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 9 Oct 2008 15:08:53 -0400 Subject: [PATCH] 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. --- Source/cmLocalUnixMakefileGenerator3.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index b27855fde..a2595d9d7 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"; }