summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalCommonGenerator.cxx
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2021-06-24 13:13:08 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-29 15:07:42 (GMT)
commit51bf4094fb7c3bf82c6e51d8e6b55e0cc289e5a5 (patch)
treeff83f46ea208d8c43593891d41533d7a312f3a4c /Source/cmGlobalCommonGenerator.cxx
parent7cb4ad7e3990c879088b7573d136509989ed3f5b (diff)
downloadCMake-51bf4094fb7c3bf82c6e51d8e6b55e0cc289e5a5.zip
CMake-51bf4094fb7c3bf82c6e51d8e6b55e0cc289e5a5.tar.gz
CMake-51bf4094fb7c3bf82c6e51d8e6b55e0cc289e5a5.tar.bz2
Ninja: Use `ccmake` for `edit_cache`
If `ninja` is new enough to support the console pool, and `ccmake` is available, use it for `edit_cache`.
Diffstat (limited to 'Source/cmGlobalCommonGenerator.cxx')
-rw-r--r--Source/cmGlobalCommonGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalCommonGenerator.cxx b/Source/cmGlobalCommonGenerator.cxx
index a4112db..a8e0f23 100644
--- a/Source/cmGlobalCommonGenerator.cxx
+++ b/Source/cmGlobalCommonGenerator.cxx
@@ -110,7 +110,7 @@ std::string cmGlobalCommonGenerator::GetEditCacheCommand() const
std::string editCacheCommand = cm->GetCMakeEditCommand();
if (!cm->GetCacheDefinition("CMAKE_EDIT_COMMAND") ||
!editCacheCommand.empty()) {
- if (editCacheCommand.empty()) {
+ if (this->SupportsDirectConsole() && editCacheCommand.empty()) {
editCacheCommand = cmSystemTools::GetCMakeCursesCommand();
}
if (editCacheCommand.empty()) {