Browse Source

BUG: Fix the compression with custom extension

Andy Cedilnik 20 years ago
parent
commit
8b0c04724c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmGeneratedFileStream.cxx

+ 1 - 1
Source/cmGeneratedFileStream.cxx

@@ -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";
     }
     }