diff options
author | Brad King <brad.king@kitware.com> | 2017-04-05 18:54:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-11 15:40:14 (GMT) |
commit | b1eb493c11f38f651c2a8f0489918f3a55feeb99 (patch) | |
tree | 4585eb6d64b72613a017ccf68987e1080720f962 /Source/cmGlobalGenerator.cxx | |
parent | 0419ecbcad7719614349a07189b45e341a8f2c69 (diff) | |
download | CMake-b1eb493c11f38f651c2a8f0489918f3a55feeb99.zip CMake-b1eb493c11f38f651c2a8f0489918f3a55feeb99.tar.gz CMake-b1eb493c11f38f651c2a8f0489918f3a55feeb99.tar.bz2 |
cmGlobalGenerator: Abort generation earlier on export() error
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index ce83e2e..a9243eb 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1347,10 +1347,11 @@ void cmGlobalGenerator::Generate() for (std::map<std::string, cmExportBuildFileGenerator*>::iterator it = this->BuildExportSets.begin(); it != this->BuildExportSets.end(); ++it) { - if (!it->second->GenerateImportFile() && - !cmSystemTools::GetErrorOccuredFlag()) { - this->GetCMakeInstance()->IssueMessage(cmake::FATAL_ERROR, - "Could not write export file."); + if (!it->second->GenerateImportFile()) { + if (!cmSystemTools::GetErrorOccuredFlag()) { + this->GetCMakeInstance()->IssueMessage(cmake::FATAL_ERROR, + "Could not write export file."); + } return; } } |