Merge pull request #932 from r-chris/make-zlib-optional
Allowing to enable building of zlib manually through CMake option.pull/933/head
commit
a62ea5497d
|
@ -176,7 +176,15 @@ ENDIF( CMAKE_COMPILER_IS_GNUCXX )
|
||||||
|
|
||||||
# Search for external dependencies, and build them from source if not found
|
# Search for external dependencies, and build them from source if not found
|
||||||
# Search for zlib
|
# 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 )
|
IF( NOT ZLIB_FOUND )
|
||||||
message(STATUS "compiling zlib from souces")
|
message(STATUS "compiling zlib from souces")
|
||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
|
|
Loading…
Reference in New Issue