From db4924694eabc161a7fb8eb43f083d0ca55396e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=8A=E5=B0=91?= Date: Tue, 19 Nov 2024 15:42:09 +0800 Subject: [PATCH] Update cmake_policy in vcpkg (#41574) Co-authored-by: Kai Pastor --- scripts/buildsystems/vcpkg.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index de8425ea6e..0ff9c1b40d 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -37,7 +37,7 @@ if(CMAKE_VERSION VERSION_LESS Z_VCPKG_CMAKE_REQUIRED_MINIMUM_VERSION) message(FATAL_ERROR "vcpkg.cmake requires at least CMake ${Z_VCPKG_CMAKE_REQUIRED_MINIMUM_VERSION}.") endif() cmake_policy(PUSH) -cmake_policy(VERSION 3.7.2) +cmake_policy(VERSION 3.16) include(CMakeDependentOption) @@ -875,7 +875,7 @@ macro("${VCPKG_OVERRIDE_FIND_PACKAGE_NAME}" z_vcpkg_find_package_package_name) endmacro() cmake_policy(PUSH) -cmake_policy(VERSION 3.7.2) +cmake_policy(VERSION 3.16) set(VCPKG_TOOLCHAIN ON) set(Z_VCPKG_UNUSED "${CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION}")