X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=3rdparty%2Fzlib%2FCMakeLists.txt;h=e81e43af1cbf878c3deda40e425b4a679010a721;hb=9350076b3aa268919a4bf6e05c4a10caebabb913;hp=b14776ef45d4dbb6591113360556866be0cb5063;hpb=c9c86b49666e49a6cc0c850af7413bfea500c5fd;p=features.git diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt index b14776ef45..e81e43af1c 100644 --- a/3rdparty/zlib/CMakeLists.txt +++ b/3rdparty/zlib/CMakeLists.txt @@ -2,12 +2,14 @@ cmake_minimum_required(VERSION 3.1) set(LYX_IPO_SUPPORTED FALSE) if (POLICY CMP0069) - if (NOT LYX_DEBUG) - cmake_policy(SET CMP0069 NEW) - include(CheckIPOSupported) - check_ipo_supported(RESULT LYX_IPO_SUPPORTED) + cmake_policy(SET CMP0069 NEW) + if (LYX_USE_IPO MATCHES "ON") + set(LYX_IPO_SUPPORTED YES) endif() endif() +if (POLICY CMP0075) + cmake_policy(SET CMP0075 NEW) +endif() set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)