From 486b3c0850528fc3dd7e9a0c0615a4150ef81827 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Sat, 21 Jan 2023 15:08:21 +0100 Subject: FindPython: Policy CMP0007 must be set to NEW Fixes: #24306 --- Modules/FindPython/Support.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Modules') diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index 7a127e4b40..37ca38f172 100644 --- a/Modules/FindPython/Support.cmake +++ b/Modules/FindPython/Support.cmake @@ -10,6 +10,8 @@ # cmake_policy(PUSH) +# list supports empty elements +cmake_policy (SET CMP0007 NEW) # numbers and boolean constants cmake_policy (SET CMP0012 NEW) # IN_LIST operator -- cgit v1.2.1