summaryrefslogtreecommitdiffstats
path: root/Source/cmArchiveWrite.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-04-04 17:43:36 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-03-31 15:08:32 (GMT)
commit948aa8bd1cee99479bde13704467a50872d7ff93 (patch)
treefcd188d7a3c9359dc824f4d3608255abab5d7d6b /Source/cmArchiveWrite.cxx
parentb9c17de023ea50e7be358519141971aa136858ca (diff)
downloadCMake-948aa8bd1cee99479bde13704467a50872d7ff93.zip
CMake-948aa8bd1cee99479bde13704467a50872d7ff93.tar.gz
CMake-948aa8bd1cee99479bde13704467a50872d7ff93.tar.bz2
cmArchiveWrite: support setting archive filter options
Diffstat (limited to 'Source/cmArchiveWrite.cxx')
-rw-r--r--Source/cmArchiveWrite.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmArchiveWrite.cxx b/Source/cmArchiveWrite.cxx
index 07136da..0f9b42c 100644
--- a/Source/cmArchiveWrite.cxx
+++ b/Source/cmArchiveWrite.cxx
@@ -369,3 +369,16 @@ bool cmArchiveWrite::AddData(const char* file, size_t size)
}
return true;
}
+
+bool cmArchiveWrite::SetFilterOption(const char* module, const char* key,
+ const char* value)
+{
+ if (archive_write_set_filter_option(this->Archive, module, key, value) !=
+ ARCHIVE_OK) {
+ this->Error = "archive_write_set_filter_option: ";
+ this->Error += cm_archive_error_string(this->Archive);
+ return false;
+ }
+
+ return true;
+}