mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-27 04:09:36 +03:00
cmake-gui: Suppress incidental error messages while choosing build tree
Avoid printing
Error: <path> is not a directory
to the console for every update to the GUI's build directory widget.
This commit is contained in:
+3
-1
@@ -4016,7 +4016,9 @@ bool cmake::Open(std::string const& dir, DryRun dryRun)
|
||||
this->SetHomeDirectory("");
|
||||
this->SetHomeOutputDirectory("");
|
||||
if (!cmSystemTools::FileIsDirectory(dir)) {
|
||||
std::cerr << "Error: " << dir << " is not a directory\n";
|
||||
if (dryRun == DryRun::No) {
|
||||
std::cerr << "Error: " << dir << " is not a directory\n";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user