Răsfoiți Sursa

FindPython: Policy CMP0007 must be set to NEW

Fixes: #24306
Marc Chevrier 2 ani în urmă
părinte
comite
486b3c0850
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      Modules/FindPython/Support.cmake

+ 2 - 0
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