|
@@ -110,7 +110,7 @@ std::string cmGlobalCommonGenerator::GetEditCacheCommand() const
|
|
|
std::string editCacheCommand = cm->GetCMakeEditCommand();
|
|
std::string editCacheCommand = cm->GetCMakeEditCommand();
|
|
|
if (!cm->GetCacheDefinition("CMAKE_EDIT_COMMAND") ||
|
|
if (!cm->GetCacheDefinition("CMAKE_EDIT_COMMAND") ||
|
|
|
!editCacheCommand.empty()) {
|
|
!editCacheCommand.empty()) {
|
|
|
- if (editCacheCommand.empty()) {
|
|
|
|
|
|
|
+ if (this->SupportsDirectConsole() && editCacheCommand.empty()) {
|
|
|
editCacheCommand = cmSystemTools::GetCMakeCursesCommand();
|
|
editCacheCommand = cmSystemTools::GetCMakeCursesCommand();
|
|
|
}
|
|
}
|
|
|
if (editCacheCommand.empty()) {
|
|
if (editCacheCommand.empty()) {
|