mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 13:10:26 -04:00
Changed to skip the ZLib check when ZLIB_SOURCE is set.
This commit is contained in:
parent
5feabe0988
commit
5f738a9819
@ -209,13 +209,14 @@ check_cxx_source_compiles("
|
||||
|
||||
# Check for libz using the cmake supplied FindZLIB.cmake
|
||||
|
||||
find_package(ZLIB)
|
||||
if(ZLIB_FOUND)
|
||||
set(HAVE_ZLIB 1)
|
||||
else()
|
||||
set(HAVE_ZLIB 0)
|
||||
if(NOT ZLIB_SOURCE)
|
||||
find_package(ZLIB)
|
||||
if(ZLIB_FOUND)
|
||||
set(HAVE_ZLIB 1)
|
||||
else()
|
||||
set(HAVE_ZLIB 0)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
|
||||
|
||||
find_package(CppUnit)
|
||||
|
Loading…
Reference in New Issue
Block a user