Don't use bzip2 on freetype and libarchive

This commit is contained in:
David Capello 2018-04-03 13:01:19 -03:00
parent 16e1a650b1
commit b55ae10aba

View File

@ -58,6 +58,7 @@ endif()
if(NOT USE_SHARED_FREETYPE)
set(SKIP_INSTALL_ALL on)
set(WITH_BZip2 OFF CACHE BOOL "")
# If we don't do this, the compilation fails because it looks like
# ftgzip.c includes our zlib.h, but uses the zconf.h in the
@ -127,6 +128,7 @@ set(ENABLE_TEST OFF CACHE BOOL "Enable unit and regression tests")
set(ENABLE_COVERAGE OFF CACHE BOOL "Enable code coverage (GCC only, automatically sets ENABLE_TEST to ON)")
set(ENABLE_LZMA OFF CACHE BOOL "Enable the use of the system LZMA library if found")
set(ENABLE_CNG OFF CACHE BOOL "Enable the use of CNG(Crypto Next Generation)")
set(ENABLE_BZip2 OFF CACHE BOOL "Enable the use of the system BZip2 library if found")
add_subdirectory(libarchive)
target_include_directories(archive_static INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libarchive/libarchive>)