summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-03-01 21:37:37 (GMT)
committerBrad King <brad.king@kitware.com>2022-03-02 17:21:16 (GMT)
commit78e8f1145670ad7326c4d06502315741805aa304 (patch)
tree5684f7b05b8b8ec501f37ae85ccfbf82cee7cb46 /Source
parent4091d5c58cb3e300a6301c405d54ca8605db3425 (diff)
downloadCMake-78e8f1145670ad7326c4d06502315741805aa304.zip
CMake-78e8f1145670ad7326c4d06502315741805aa304.tar.gz
CMake-78e8f1145670ad7326c4d06502315741805aa304.tar.bz2
cmake: Correct regression in `-B <dir> <src_dir>`
Fixes: #23285
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index fe4d252..f9e2d6e 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1556,7 +1556,7 @@ bool cmake::SetDirectoriesFromFile(const std::string& arg)
// This function is called multiple times with the same path
if (is_source_dir) {
this->SetHomeDirectoryViaCommandLine(listPath, HomeDirArgStyle::Plain);
- if (!no_build_tree) {
+ if (no_build_tree) {
std::string cwd = cmSystemTools::GetCurrentWorkingDirectory();
this->SetHomeOutputDirectory(cwd);
}