diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-01-22 10:33:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-22 19:46:03 (GMT) |
commit | 68b51fb19af65610f6f36f3a3da2aa34ab0a9c59 (patch) | |
tree | dc98c78b77b0c8ad5446b12ba4792e029e12d47d /Source | |
parent | fa5bf870df1ce5d9cbcf61be736beb0b1e87b85b (diff) | |
download | CMake-68b51fb19af65610f6f36f3a3da2aa34ab0a9c59.zip CMake-68b51fb19af65610f6f36f3a3da2aa34ab0a9c59.tar.gz CMake-68b51fb19af65610f6f36f3a3da2aa34ab0a9c59.tar.bz2 |
cmake: Convert no source/build dir error to warning
Temporarily restore previous behavior that allowed specifying
no source or build directory to work, even though it was
neither documented nor supported. This commit is expected
to eventually be reverted to restore the fatal error for such
cases.
Relates: #18817
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmake.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 065f6df..914c3b0 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -810,8 +810,11 @@ void cmake::SetArgs(const std::vector<std::string>& args) if (this->CurrentWorkingMode == cmake::NORMAL_MODE && !haveSourceDir && !haveBinaryDir) { - cmSystemTools::Error("No source or binary directory provided"); - return; + this->IssueMessage( + MessageType::WARNING, + "No source or binary directory provided. Both will be assumed to be " + "the same as the current working directory, but note that this " + "warning will become a fatal error in future CMake releases."); } if (!haveSourceDir) { |