From b41978fef7280baf870d8d6af6f09f317e2c0db2 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 6 Aug 2003 17:58:47 -0400 Subject: [PATCH] ENH: If CMAKE_EDIT_COMMAND is not specified, use cmake -i --- Source/cmLocalUnixMakefileGenerator.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 4c6752f1e..e7bf258f8 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -2432,6 +2432,15 @@ void cmLocalUnixMakefileGenerator::OutputMakeRules(std::ostream& fout) "$(CMAKE_EDIT_COMMAND) " "-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, "CMakeCache.txt",