summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-02 15:36:44 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-02 15:36:44 (GMT)
commit8b0c04724caebcf60161eeae53fd05330594ac08 (patch)
treedc847a206aa57a6aeeaa0e3170ec9838b5cdba16 /Source/cmGeneratedFileStream.cxx
parentc9f3ad1e23a9ed6d17ab4224e0fe6ab4e8629c30 (diff)
downloadCMake-8b0c04724caebcf60161eeae53fd05330594ac08.zip
CMake-8b0c04724caebcf60161eeae53fd05330594ac08.tar.gz
CMake-8b0c04724caebcf60161eeae53fd05330594ac08.tar.bz2
BUG: Fix the compression with custom extension
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r--Source/cmGeneratedFileStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index 63a0384..c48620e 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -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";
}