diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2019-12-03 19:20:05 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2019-12-05 15:06:44 +0100 |
commit | 571c8c59715656c317e1c352ea5012171583ce05 (patch) | |
tree | c34a2743138d3549b39b74b5aa4f8abdd31d0cca | |
parent | 110faf3a34f50ca9bc4a736688dda3ea5c931655 (diff) | |
download | fork-ledger-571c8c59715656c317e1c352ea5012171583ce05.tar.gz fork-ledger-571c8c59715656c317e1c352ea5012171583ce05.tar.bz2 fork-ledger-571c8c59715656c317e1c352ea5012171583ce05.zip |
Adjust FindPython/Support.cmake for backport
-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) |