diff options
Diffstat (limited to 'cmake/FindPython/Support.cmake')
-rw-r--r-- | cmake/FindPython/Support.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
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) |