mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 13:30:39 +00:00
d4a9e334d3
Use the approach originally used in commit f91b3c1d
(Add options to
build with system utility libraries, 2006-10-19) for all other
third-party libraries. Create a "cm_bzlib.h" header wrapper that
robustly includes the header from the bzip2 library chosen for the CMake
build (either builtin or system version). Include the header wrapper
anywhere we need the API provided by <bzlib.h>.
24 lines
790 B
C
24 lines
790 B
C
/*============================================================================
|
|
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
|