q3map2/light_bounce: prevent infinite loop on obscure bias compute
[xonotic/netradiant.git] / cmake / FindMinizip.cmake
1 find_package(PkgConfig)
2 if (PKG_CONFIG_FOUND)
3     if (Minizip_FIND_REQUIRED)
4         set(_pkgconfig_REQUIRED REQUIRED)
5     endif ()
6     pkg_check_modules(Minizip ${_pkgconfig_REQUIRED} minizip)
7 else ()
8     find_path(Minizip_INCLUDE_DIRS unzip.h)
9     # find_library(Minizip_LIBRARIES)
10     if (Minizip_INCLUDE_DIRS AND Minizip_LIBRARIES)
11         set(Minizip_FOUND 1)
12         if (NOT Minizip_FIND_QUIETLY)
13             message(STATUS "Found Minizip: ${Minizip_LIBRARIES}")
14         endif ()
15     elseif (Minizip_FIND_REQUIRED)
16         message(SEND_ERROR "Could not find Minizip")
17     elseif (NOT Minizip_FIND_QUIETLY)
18         message(STATUS "Could not find Minizip")
19     endif ()
20 endif ()
21 mark_as_advanced(Minizip_INCLUDE_DIRS Minizip_LIBRARIES)