allowing to enable building of zlib manually
parent
9b6de15b74
commit
2c6c19d656
|
@ -175,7 +175,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