summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2019-01-22 10:33:54 (GMT)
committerCraig Scott <craig.scott@crascit.com>2019-01-22 10:33:54 (GMT)
commit2395b1b244743aaf28426a72f37d1aac96e3db9e (patch)
treea1bdd526865b94ea33fccd7506bb34203c6f6ca2 /Source
parent8887ebc69b86606b388272d5c89ce11753bb4804 (diff)
downloadCMake-2395b1b244743aaf28426a72f37d1aac96e3db9e.zip
CMake-2395b1b244743aaf28426a72f37d1aac96e3db9e.tar.gz
CMake-2395b1b244743aaf28426a72f37d1aac96e3db9e.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.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 74542df..d0863b0 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -808,8 +808,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(
+ cmake::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) {