Merge pull request #932 from r-chris/make-zlib-optional

Allowing to enable building of zlib manually through CMake option.
pull/933/head
Kim Kulling 2016-07-04 15:00:13 +02:00 committed by GitHub
commit a62ea5497d
1 changed files with 11 additions and 3 deletions

View File

@ -176,7 +176,15 @@ ENDIF( CMAKE_COMPILER_IS_GNUCXX )
# Search for external dependencies, and build them from source if not found
# Search for zlib
find_package(ZLIB)
OPTION(ASSIMP_BUILD_ZLIB
"Build your own zlib"
OFF
)
IF ( NOT ASSIMP_BUILD_ZLIB )
find_package(ZLIB)
ENDIF(ASSIMP_BUILD_ZLIB)
IF( NOT ZLIB_FOUND )
message(STATUS "compiling zlib from souces")
include(CheckIncludeFile)