Skip to content
Snippets Groups Projects
Commit d71168d0 authored by Ricardo Ortiz's avatar Ricardo Ortiz
Browse files

Fix assimp zlib finder.

Closes #49
parent 520884a5
No related branches found
No related tags found
1 merge request!52Remove GLEW external project.
......@@ -27,17 +27,19 @@ find_library(ASSIMP_LIBRARY
assimp${LIBRARY_SUFFIX}d
)
find_package(ZLIB)
set(ASSIMP_ZLIB_INCLUDE_DIR)
find_package(ZLIB QUIET)
if(NOT ZLIB_FOUND)
find_library(ZLIB_LIBRARY
NAMES
zlibstaticd
zlibstatic
)
set(ASSIMP_ZLIB_INCLUDE_DIR "${ASSIMP_INCLUDE_DIR}")
else()
set(ASSIMP_ZLIB_INCLUDE_DIR "${ZLIB_INCLUDE_DIR}")
endif()
set(ASSIMP_ZLIB_INCLUDE_DIR "${ASSIMP_INCLUDE_DIR}" "${ZLIB_INCLUDE_DIR}")
set(ASSIMP_INCLUDE_DIRS "${ASSIMP_INCLUDE_DIR}")
set(ASSIMP_LIBRARIES "${ASSIMP_LIBRARY}" "${ZLIB_LIBRARY}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment