Codebase list ignition-cmake / 4f19547
Silence CMP0148 warning about PythonInterp Timo Röhling 9 months ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
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)
22 0003-Move-pkg-config-to-share.patch
33 0004-Do-not-override-unit-test-default-timeout.patch
44 0005-Set-proper-hashbang-for-installed-Python-scripts.patch
5 0006-Silence-CMP0148-warning-about-PythonInterp.patch