From a4e38a55c2d1e92f656538eabdec7eb6d28d3cd6 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Sat, 16 Nov 2024 00:46:13 +0100 Subject: [PATCH] [vcpkg] Set CMP0174 NEW (#42045) --- scripts/ports.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ports.cmake b/scripts/ports.cmake index 66b6b5a669..026555e41b 100644 --- a/scripts/ports.cmake +++ b/scripts/ports.cmake @@ -1,4 +1,8 @@ cmake_minimum_required(VERSION 3.21) +if(POLICY CMP0174) + # Use CMake 3.31 behavior for cmake_parse_arguments(PARSE_ARGV) + cmake_policy(SET CMP0174 NEW) +endif() # Remove CMAKE_ variables from the script call foreach(i RANGE 0 "${CMAKE_ARGC}")