mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
#1902 added workaround for CMake 2.8.2 bug
This commit is contained in:
parent
57e26bde9f
commit
31723effe7
@ -9,7 +9,11 @@ if(BUILD_ZLIB)
|
||||
unset_all(ZLIB_FOUND)
|
||||
else()
|
||||
include(FindZLIB)
|
||||
if(ZLIB_FOUND AND NOT ZLIB_VERSION_STRING)
|
||||
if(ZLIB_FOUND)
|
||||
if(ZLIB_VERSION_STRING)
|
||||
#cmake 2.8.2 bug - it fails to determine zlib version
|
||||
unset(ZLIB_VERSION_STRING CACHE)
|
||||
endif()
|
||||
ocv_parse_header2(ZLIB "${ZLIB_INCLUDE_DIR}/zlib.h" ZLIB_VERSION "")
|
||||
endif()
|
||||
if(ZLIB_FOUND AND ANDROID)
|
||||
|
Loading…
Reference in New Issue
Block a user