mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
3296e6ad90
When CMAKE_USE_SYSTEM_LIBARCHIVE is on we must include the system libarchive headers to match the library that will be linked.
26 lines
902 B
C
26 lines
902 B
C
/*============================================================================
|
|
CMake - Cross Platform Makefile Generator
|
|
Copyright 2000-2010 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_libarchive_h
|
|
#define __cm_libarchive_h
|
|
|
|
/* Use the libarchive configured for CMake. */
|
|
#include "cmThirdParty.h"
|
|
#ifdef CMAKE_USE_SYSTEM_LIBARCHIVE
|
|
# include <archive.h>
|
|
# include <archive_entry.h>
|
|
#else
|
|
# include <cmlibarchive/libarchive/archive.h>
|
|
# include <cmlibarchive/libarchive/archive_entry.h>
|
|
#endif
|
|
|
|
#endif
|