diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2011-03-19 10:12:31 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2011-03-19 10:12:31 (GMT) |
commit | 21007f898952d74a4db38a9259d946c7d9a06eb3 (patch) | |
tree | 9892355e3fceaecb735fb722904a2691df39a27b /Source/CPack/cmCPackGenerator.cxx | |
parent | 96453cea6ae9d41e83d8148539acc614e6316abd (diff) | |
download | CMake-21007f898952d74a4db38a9259d946c7d9a06eb3.zip CMake-21007f898952d74a4db38a9259d946c7d9a06eb3.tar.gz CMake-21007f898952d74a4db38a9259d946c7d9a06eb3.tar.bz2 |
CPack fix CPackDeb crash when CPackDeb.cmake ends with a FATAL_ERROR
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 5f314c6..c343acf 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -885,8 +885,12 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects( //---------------------------------------------------------------------- bool cmCPackGenerator::ReadListFile(const char* moduleName) { + bool retval; std::string fullPath = this->MakefileMap->GetModulesFile(moduleName); - return this->MakefileMap->ReadListFile(0, fullPath.c_str()); + retval = this->MakefileMap->ReadListFile(0, fullPath.c_str()); + // include FATAL_ERROR and ERROR in the return status + retval = retval && (! cmSystemTools::GetErrorOccuredFlag()); + return retval; } //---------------------------------------------------------------------- |