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
1 changed files with 1 additions and 1 deletions

View File

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