summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r--Source/cmGeneratedFileStream.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index d0f2cc0..63a0384 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -108,12 +108,19 @@ void cmGeneratedFileStream::SetCompression(bool compression)
}
//----------------------------------------------------------------------------
+void cmGeneratedFileStream::SetCompressionExtraExtension(bool ext)
+{
+ m_CompressExtraExtension = ext;
+}
+
+//----------------------------------------------------------------------------
cmGeneratedFileStreamBase::cmGeneratedFileStreamBase():
m_Name(),
m_TempName(),
m_CopyIfDifferent(false),
m_Okay(false),
- m_Compress(false)
+ m_Compress(false),
+ m_CompressExtraExtension(true)
{
}
@@ -123,7 +130,8 @@ cmGeneratedFileStreamBase::cmGeneratedFileStreamBase(const char* name):
m_TempName(),
m_CopyIfDifferent(false),
m_Okay(false),
- m_Compress(false)
+ m_Compress(false),
+ m_CompressExtraExtension(true)
{
this->Open(name);
}
@@ -155,7 +163,7 @@ void cmGeneratedFileStreamBase::Open(const char* name)
void cmGeneratedFileStreamBase::Close()
{
std::string resname = m_Name;
- if ( m_Compress )
+ if ( m_CompressExtraExtension )
{
resname += ".gz";
}