summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-23 13:12:55 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-23 13:13:02 (GMT)
commitd8788faa6634e4a837e9d62423bcf4969d90e560 (patch)
tree7e058c7a2f160cf05aad56162a84af038cbd6659 /Source
parentfd54b85937b9cbfbc04b05b9a0b9d143ea2be6e5 (diff)
parent20861d758b5c8ee1791ac1f76088ba29431a4e16 (diff)
downloadCMake-d8788faa6634e4a837e9d62423bcf4969d90e560.zip
CMake-d8788faa6634e4a837e9d62423bcf4969d90e560.tar.gz
CMake-d8788faa6634e4a837e9d62423bcf4969d90e560.tar.bz2
Merge topic 'cmake-warn-no-src-build-dir'
20861d758b Merge branch 'backport-cmake-warn-no-src-build-dir' 68b51fb19a cmake: Convert no source/build dir error to warning 6b85eea365 Help: Add 3.13.4 release note for no source/build dir error/warning 2395b1b244 cmake: Convert no source/build dir error to warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2839
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 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) {