From 571c8c59715656c317e1c352ea5012171583ce05 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Tue, 3 Dec 2019 19:20:05 +0000 Subject: Adjust FindPython/Support.cmake for backport --- cmake/FindPython/Support.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/FindPython/Support.cmake b/cmake/FindPython/Support.cmake index 590c7af4..de98ee20 100644 --- a/cmake/FindPython/Support.cmake +++ b/cmake/FindPython/Support.cmake @@ -5,7 +5,11 @@ # This file is a "template" file used by various FindPython modules. # -cmake_policy (GET CMP0094 _${_PYTHON_PREFIX}_LOOKUP_POLICY) +if(POLICY CMP0094) + cmake_policy (GET CMP0094 _${_PYTHON_PREFIX}_LOOKUP_POLICY) +else() + set (_${_PYTHON_PREFIX}_FIND_STRATEGY "LOCATION") +endif() cmake_policy (VERSION 3.7) -- cgit v1.2.3