BUG: Fix the compression with custom extension

This commit is contained in:
Andy Cedilnik 2006-01-02 10:36:44 -05:00
parent c9f3ad1e23
commit 8b0c04724c

View File

@ -163,7 +163,7 @@ void cmGeneratedFileStreamBase::Open(const char* name)
void cmGeneratedFileStreamBase::Close() void cmGeneratedFileStreamBase::Close()
{ {
std::string resname = m_Name; std::string resname = m_Name;
if ( m_CompressExtraExtension ) if ( m_Compress && m_CompressExtraExtension )
{ {
resname += ".gz"; resname += ".gz";
} }