diff --git a/cmake/shiboken_helper.cmake b/cmake/shiboken_helper.cmake index 14dae5e..0575d63 100644 --- a/cmake/shiboken_helper.cmake +++ b/cmake/shiboken_helper.cmake @@ -21,6 +21,10 @@ if(__PYTHON_QT_BINDING_SHIBOKEN_HELPER_INCLUDED) endif() set(__PYTHON_QT_BINDING_SHIBOKEN_HELPER_INCLUDED TRUE) +# In CMake 3.27 and later, FindPythonInterp and FindPythonLibs are deprecated. +# However, Shiboken2 as packaged in Ubuntu 24.04 still use them, so set CMP0148 to +# "OLD" to silence this warning. +cmake_policy(SET CMP0148 OLD) find_package(Shiboken2 QUIET) if(Shiboken2_FOUND) message(STATUS "Found Shiboken2 version ${Shiboken2_VERSION}")