Merge topic 'cm-bzip2-header-issue-10950'
d4a9e33
Include bzlib.h consistently across CMake build (#10950)
This commit is contained in:
commit
2c9cc252cf
|
@ -16,6 +16,7 @@
|
||||||
#cmakedefine CMAKE_USE_SYSTEM_CURL
|
#cmakedefine CMAKE_USE_SYSTEM_CURL
|
||||||
#cmakedefine CMAKE_USE_SYSTEM_EXPAT
|
#cmakedefine CMAKE_USE_SYSTEM_EXPAT
|
||||||
#cmakedefine CMAKE_USE_SYSTEM_ZLIB
|
#cmakedefine CMAKE_USE_SYSTEM_ZLIB
|
||||||
|
#cmakedefine CMAKE_USE_SYSTEM_BZIP2
|
||||||
#cmakedefine CMAKE_USE_SYSTEM_LIBARCHIVE
|
#cmakedefine CMAKE_USE_SYSTEM_LIBARCHIVE
|
||||||
#cmakedefine CTEST_USE_XMLRPC
|
#cmakedefine CTEST_USE_XMLRPC
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
/*============================================================================
|
||||||
|
CMake - Cross Platform Makefile Generator
|
||||||
|
Copyright 2000-2012 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_bzlib_h
|
||||||
|
#define __cm_bzlib_h
|
||||||
|
|
||||||
|
/* Use the bzip2 library configured for CMake. */
|
||||||
|
#include "cmThirdParty.h"
|
||||||
|
#ifdef CMAKE_USE_SYSTEM_BZIP2
|
||||||
|
# include <bzlib.h>
|
||||||
|
#else
|
||||||
|
# include <cmbzip2/bzlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$");
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BZLIB_H
|
#ifdef HAVE_BZLIB_H
|
||||||
#include <bzlib.h>
|
#include <cm_bzlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "archive.h"
|
#include "archive.h"
|
||||||
|
|
|
@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$");
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BZLIB_H
|
#ifdef HAVE_BZLIB_H
|
||||||
#include <bzlib.h>
|
#include <cm_bzlib.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LZMA_H
|
#ifdef HAVE_LZMA_H
|
||||||
#include <lzma.h>
|
#include <lzma.h>
|
||||||
|
|
|
@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
|
||||||
#include <expat.h>
|
#include <expat.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BZLIB_H
|
#ifdef HAVE_BZLIB_H
|
||||||
#include <bzlib.h>
|
#include <cm_bzlib.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_LZMA_H
|
#if HAVE_LZMA_H
|
||||||
#include <lzma.h>
|
#include <lzma.h>
|
||||||
|
|
|
@ -38,7 +38,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_write_set_compression_bzip2.c 20
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BZLIB_H
|
#ifdef HAVE_BZLIB_H
|
||||||
#include <bzlib.h>
|
#include <cm_bzlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "archive.h"
|
#include "archive.h"
|
||||||
|
|
|
@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$");
|
||||||
#endif
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef HAVE_BZLIB_H
|
#ifdef HAVE_BZLIB_H
|
||||||
#include <bzlib.h>
|
#include <cm_bzlib.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_LZMA_H
|
#if HAVE_LZMA_H
|
||||||
#include <lzma.h>
|
#include <lzma.h>
|
||||||
|
|
|
@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
|
||||||
#include <libxml/xmlwriter.h>
|
#include <libxml/xmlwriter.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BZLIB_H
|
#ifdef HAVE_BZLIB_H
|
||||||
#include <bzlib.h>
|
#include <cm_bzlib.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_LZMA_H
|
#if HAVE_LZMA_H
|
||||||
#include <lzma.h>
|
#include <lzma.h>
|
||||||
|
|
Loading…
Reference in New Issue