From 4ca5c58bf37a8be96627658cf03189ab27c1b5b8 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 8 Aug 2022 12:58:03 +0300 Subject: [PATCH] fix absolute path in png cmake module --- deps/png/lib/libpng/libpng16.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/png/lib/libpng/libpng16.cmake b/deps/png/lib/libpng/libpng16.cmake index 9eb56847..c16305b6 100644 --- a/deps/png/lib/libpng/libpng16.cmake +++ b/deps/png/lib/libpng/libpng16.cmake @@ -4,7 +4,7 @@ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5) message(FATAL_ERROR "CMake >= 2.6.0 required") endif() cmake_policy(PUSH) -cmake_policy(VERSION 2.6...3.17) +cmake_policy(VERSION 2.6...3.19) #---------------------------------------------------------------- # Generated CMake target import file. #---------------------------------------------------------------- @@ -53,7 +53,7 @@ endif() add_library(png_static STATIC IMPORTED) set_target_properties(png_static PROPERTIES - INTERFACE_LINK_LIBRARIES "/Volumes/ramdisk/zdoom-macos-deps/prefix/lib/libz.a" + INTERFACE_LINK_LIBRARIES "ZLIB::ZLIB" ) if(CMAKE_VERSION VERSION_LESS 2.8.12)