Skip to content

Commit

Permalink
Set CMake policy 0074 to recognize ZLIB_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor authored and myk002 committed May 10, 2022
1 parent d7f0e67 commit 081249c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ int main(int argc, char *argv[]) { }" HAVE_NULLABLE)

test_big_endian(WORDS_BIGENDIAN)

cmake_policy(PUSH)
if(NOT("${CMAKE_VERSION}" VERSION_LESS 3.12))
cmake_policy(SET CMP0074 NEW)
endif()
find_package(ZLIB 1.1.2 REQUIRED)
cmake_policy(POP)

if(LIBZIP_ENABLE_BZIP2)
find_package(BZip2)
Expand Down

0 comments on commit 081249c

Please sign in to comment.