From: Kornel Benko Date: Sat, 7 Mar 2020 12:49:35 +0000 (+0100) Subject: Cmake build: Remove warnings about deprecated policy CMP0075 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2ccb2898bb1e6a46ab66eb33fd13ac868464a451;p=features.git Cmake build: Remove warnings about deprecated policy CMP0075 --- diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt index 9bc1d0dbee..e81e43af1c 100644 --- a/3rdparty/zlib/CMakeLists.txt +++ b/3rdparty/zlib/CMakeLists.txt @@ -7,6 +7,9 @@ if (POLICY CMP0069) set(LYX_IPO_SUPPORTED YES) endif() endif() +if (POLICY CMP0075) + cmake_policy(SET CMP0075 NEW) +endif() set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)