summaryrefslogtreecommitdiff
path: root/Utilities/cm_zstd.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-12 13:54:44 -0400
committerBrad King <brad.king@kitware.com>2019-03-13 10:47:21 -0400
commit1761a9a54668da90c61f47afbb4e520a7079a697 (patch)
tree8dd0721ed2f025c05c1ab46e0c16d7ffcf23bf37 /Utilities/cm_zstd.h
parent2cf29217492a951ee40c17f855faa48aa26098f8 (diff)
downloadcmake-1761a9a54668da90c61f47afbb4e520a7079a697.tar.gz
CMake: Enable use of zstd in libarchive
Build zstd as part of CMake or find one on the system. Modify our port of libarchive to use the zstd configured for use with CMake. Issue: #18657
Diffstat (limited to 'Utilities/cm_zstd.h')
-rw-r--r--Utilities/cm_zstd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Utilities/cm_zstd.h b/Utilities/cm_zstd.h
new file mode 100644
index 0000000000..4bda996aa3
--- /dev/null
+++ b/Utilities/cm_zstd.h
@@ -0,0 +1,14 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#ifndef cm_zstd_h
+#define cm_zstd_h
+
+/* Use the libzstd configured for CMake. */
+#include "cmThirdParty.h"
+#ifdef CMAKE_USE_SYSTEM_ZSTD
+# include <zstd.h>
+#else
+# include <cmzstd/lib/zstd.h>
+#endif
+
+#endif