Silence CMP0148 warning about PythonInterp
Timo Röhling
9 months ago
0 | From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org> | |
1 | Date: Tue, 11 Jul 2023 00:18:09 +0200 | |
2 | Subject: Silence CMP0148 warning about PythonInterp | |
3 | ||
4 | --- | |
5 | cmake/IgnPython.cmake | 3 +++ | |
6 | 1 file changed, 3 insertions(+) | |
7 | ||
8 | diff --git a/cmake/IgnPython.cmake b/cmake/IgnPython.cmake | |
9 | index 064f7ea..01af58f 100644 | |
10 | --- a/cmake/IgnPython.cmake | |
11 | +++ b/cmake/IgnPython.cmake | |
12 | @@ -22,4 +22,7 @@ if(NOT PYTHON_VERSION) | |
13 | set(PYTHON_VERSION "3") | |
14 | endif() | |
15 | ||
16 | +if(POLICY CMP0148) | |
17 | + cmake_policy(SET CMP0148 OLD) # Use deprecated PythonInterp | |
18 | +endif() | |
19 | find_package(PythonInterp ${PYTHON_VERSION} QUIET) |