summaryrefslogtreecommitdiffstats
path: root/Utilities/cm_lzma.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2014-07-13 20:23:22 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-29 12:45:36 (GMT)
commit8436d18115a9d997fb92fc7a019da1f28646a2f8 (patch)
tree1ac085866699c54ccfca23361fc3a5e3c7e695da /Utilities/cm_lzma.h
parent73eab246fbfad22bcc1b0bb5599f8e0cffb79c0d (diff)
downloadCMake-8436d18115a9d997fb92fc7a019da1f28646a2f8.zip
CMake-8436d18115a9d997fb92fc7a019da1f28646a2f8.tar.gz
CMake-8436d18115a9d997fb92fc7a019da1f28646a2f8.tar.bz2
CMake: Enable use of liblzma in libarchive (#14504)
Build liblzma as part of CMake or find one on the system. Modify our port of libarchive to use the liblzma configured for use with CMake.
Diffstat (limited to 'Utilities/cm_lzma.h')
-rw-r--r--Utilities/cm_lzma.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Utilities/cm_lzma.h b/Utilities/cm_lzma.h
new file mode 100644
index 0000000..c11c916
--- /dev/null
+++ b/Utilities/cm_lzma.h
@@ -0,0 +1,23 @@
+/*============================================================================
+ CMake - Cross Platform Makefile Generator
+ Copyright 2014 Kitware, Inc., Insight Software Consortium
+
+ Distributed under the OSI-approved BSD License (the "License");
+ see accompanying file Copyright.txt for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even the
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License for more information.
+============================================================================*/
+#ifndef __cm_lzma_h
+#define __cm_lzma_h
+
+/* Use the liblzma configured for CMake. */
+#include "cmThirdParty.h"
+#ifdef CMAKE_USE_SYSTEM_LIBLZMA
+# include <lzma.h>
+#else
+# include <cmliblzma/liblzma/api/lzma.h>
+#endif
+
+#endif