summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-03-03 16:46:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-03-03 16:46:29 (GMT)
commitc5ab0ea1fa4a4451c5860e26b5cb140a15266f4a (patch)
treed9582eeda3ba3798deb2ef8d3f49f8b0e76313a4 /Source/cmake.cxx
parent8c84b2e468c64639720d5a89eede3e844525bd0a (diff)
parentd2e9478321813fc7633b9fddd6fd4190dbd705ec (diff)
downloadCMake-c5ab0ea1fa4a4451c5860e26b5cb140a15266f4a.zip
CMake-c5ab0ea1fa4a4451c5860e26b5cb140a15266f4a.tar.gz
CMake-c5ab0ea1fa4a4451c5860e26b5cb140a15266f4a.tar.bz2
Merge topic 'cmake-dir-args'
d2e9478321 Tests: Add RunCMake.CommandLine ExplicitiDirs explicit work directory 78e8f11456 cmake: Correct regression in `-B <dir> <src_dir>` 4091d5c58c Tests: Verify RunCMake.CommandLine ExplicitDirs source/build dirs 1b97f8f35c Tests: Clarify RunCMake.CommandLine ExplicitDirs case names Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7030
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 14d74a8..81d225d 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);
}