Skip to content

Commit

Permalink
Force using ZLIB_ROOT when searching for zlib with find_package
Browse files Browse the repository at this point in the history
This has to be enabled explicitly since CMake 3.12.
  • Loading branch information
szpajder committed Mar 6, 2022
1 parent 7c58976 commit 3f55dfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libacars/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ include(TestBigEndian)
include(CheckSymbolExists)
include(CheckPrototypeDefinition)

# Use ZLIB_ROOT when searching for zlib with find_package
# This is used when making Win32 binary releases.
cmake_policy(SET CMP0074 NEW)

# Check if LD supports linker scripts.
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.ldscript" "VERS_1 {
global: sym;
Expand Down

0 comments on commit 3f55dfa

Please sign in to comment.