Browse Source

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.
Brad King 17 years ago
parent
commit
416bf5730f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 3 - 3
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";
     }