diff options
author | Brad King <brad.king@kitware.com> | 2019-03-12 17:54:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-03-13 14:47:21 (GMT) |
commit | 1761a9a54668da90c61f47afbb4e520a7079a697 (patch) | |
tree | 8dd0721ed2f025c05c1ab46e0c16d7ffcf23bf37 /Utilities/cm_zstd.h | |
parent | 2cf29217492a951ee40c17f855faa48aa26098f8 (diff) | |
download | CMake-1761a9a54668da90c61f47afbb4e520a7079a697.zip CMake-1761a9a54668da90c61f47afbb4e520a7079a697.tar.gz CMake-1761a9a54668da90c61f47afbb4e520a7079a697.tar.bz2 |
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.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Utilities/cm_zstd.h b/Utilities/cm_zstd.h new file mode 100644 index 0000000..4bda996 --- /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 |