Sfoglia il codice sorgente

ENH: If CMAKE_EDIT_COMMAND is not specified, use cmake -i

Andy Cedilnik 22 anni fa
parent
commit
b41978fef7
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      Source/cmLocalUnixMakefileGenerator.cxx

+ 9 - 0
Source/cmLocalUnixMakefileGenerator.cxx

@@ -2432,6 +2432,15 @@ void cmLocalUnixMakefileGenerator::OutputMakeRules(std::ostream& fout)
                          "$(CMAKE_EDIT_COMMAND) "
                          "$(CMAKE_EDIT_COMMAND) "
                          "-H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)");
                          "-H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)");
     }
     }
+  else
+    {
+    this->OutputMakeRule(fout, 
+                         "edit CMakeCache.txt",
+                         "edit_cache",
+                         0,
+                         "$(CMAKE_COMMAND) "
+                         "-H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) -i");
+    }
   
   
   this->OutputMakeRule(fout, 
   this->OutputMakeRule(fout, 
                        "CMakeCache.txt",
                        "CMakeCache.txt",