From 8ba76e65e9434a2691299584a00cf5e173cbcbd9 Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Wed, 16 Oct 2024 22:40:47 +0300 Subject: [PATCH] build: set cmake policy for if(IN_LIST) support --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67c4f35d5d..8411604d32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,10 @@ if(POLICY CMP0056) cmake_policy(SET CMP0056 NEW) # try_compile(): link flags endif() +if(POLICY CMP0057) + cmake_policy(SET CMP0057 NEW) # CMake 3.3: if(IN_LIST) support +endif() + if(POLICY CMP0066) cmake_policy(SET CMP0066 NEW) # CMake 3.7: try_compile(): use per-config flags, like CMAKE_CXX_FLAGS_RELEASE endif()