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

This commit is contained in:
Andy Cedilnik 2003-08-06 17:58:47 -04:00
parent 123759d9f5
commit b41978fef7
1 changed files with 9 additions and 0 deletions

View File

@ -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",