summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-06-14 20:27:22 (GMT)
committerAlex Neundorf <neundorf@kde.org>2012-06-14 20:27:22 (GMT)
commite4a2d5f9eeca03470192f0f0b4e3bc16ef33e084 (patch)
tree96dfa2109bfd24375db18647f787f7c410039df5 /Source/cmake.cxx
parent7717d964b86f86e001641d1afea84c327e336ee7 (diff)
downloadCMake-e4a2d5f9eeca03470192f0f0b4e3bc16ef33e084.zip
CMake-e4a2d5f9eeca03470192f0f0b4e3bc16ef33e084.tar.gz
CMake-e4a2d5f9eeca03470192f0f0b4e3bc16ef33e084.tar.bz2
automoc: better error handling (#13299)
automoc now fails immediately if moc fails, instead of continuing and letting the build fail later on. Alex
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 2ffff42..451aec8 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1699,8 +1699,8 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
else if (args[1] == "cmake_automoc")
{
cmQtAutomoc automoc;
- automoc.Run(args[2].c_str());
- return 0;
+ bool automocSuccess = automoc.Run(args[2].c_str());
+ return automocSuccess ? 0 : 1;
}
#endif