diff options
author | Brad King <brad.king@kitware.com> | 2019-01-22 19:11:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-22 19:47:47 (GMT) |
commit | 845a46fb743cc036edd45e941be41ca55a3910b2 (patch) | |
tree | ae073991461d6ba1bbf1282b00696aab2c96044b /Source | |
parent | 8887ebc69b86606b388272d5c89ce11753bb4804 (diff) | |
parent | 6b85eea3656e30aca7249ca4b903884d3bc73020 (diff) | |
download | CMake-845a46fb743cc036edd45e941be41ca55a3910b2.zip CMake-845a46fb743cc036edd45e941be41ca55a3910b2.tar.gz CMake-845a46fb743cc036edd45e941be41ca55a3910b2.tar.bz2 |
Merge branch 'backport-cmake-warn-no-src-build-dir' into release-3.13
Merge-request: !2839
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 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) { |