diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-03-15 15:00:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-13 14:31:39 (GMT) |
commit | 8cc04b1918301964ef7de0f44b77fdf1d82729ba (patch) | |
tree | ded6808611d5568df69d96fe0784227ae4d9d631 /Source/cmake.cxx | |
parent | 741fb95f660c73035a26b572dfcd3d628d324d57 (diff) | |
download | CMake-8cc04b1918301964ef7de0f44b77fdf1d82729ba.zip CMake-8cc04b1918301964ef7de0f44b77fdf1d82729ba.tar.gz CMake-8cc04b1918301964ef7de0f44b77fdf1d82729ba.tar.bz2 |
cmake: Display error if generate step fails
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 121d12d..d19de21 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1733,6 +1733,11 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure) return ret; } ret = this->Generate(); + if (ret) { + cmSystemTools::Message("CMake Generate step failed. " + "Build files cannot be regenerated correctly."); + return ret; + } std::string message = "Build files have been written to: "; message += this->GetHomeOutputDirectory(); this->UpdateProgress(message, -1); |