diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-13 01:54:27 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-13 01:54:27 (GMT) |
commit | 042f4c334d854448852ede2a207e7e361e53c154 (patch) | |
tree | dfccab0829f6b90046b7719e3d07a0afd054429e /Source/CPack/cmCPackGenerator.cxx | |
parent | 5ab6c0f0ed39136bd778a6f982691e5142a7aceb (diff) | |
download | CMake-042f4c334d854448852ede2a207e7e361e53c154.zip CMake-042f4c334d854448852ede2a207e7e361e53c154.tar.gz CMake-042f4c334d854448852ede2a207e7e361e53c154.tar.bz2 |
ENH: fix crash in cpack when CPACK_CYGWIN_PATCH_NUMBER not specified
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index a58953a..8502df0 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -817,7 +817,15 @@ bool cmCPackGenerator::IsSet(const char* name) const //---------------------------------------------------------------------- const char* cmCPackGenerator::GetOption(const char* op) { - return this->MakefileMap->GetDefinition(op); + const char* ret = this->MakefileMap->GetDefinition(op); + if(!ret) + { + cmCPackLogger(cmCPackLog::LOG_DEBUG, + "Warning, GetOption return NULL for: " + << op + << std::endl); + } + return ret; } //---------------------------------------------------------------------- |