Skip to content

Commit e6b881e

Browse files
authored
Suppress warning from Shiboken2. (#137)
The comment has more information on why we are doing this. Signed-off-by: Chris Lalancette <[email protected]>
1 parent 480c8d2 commit e6b881e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/shiboken_helper.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ if(__PYTHON_QT_BINDING_SHIBOKEN_HELPER_INCLUDED)
2121
endif()
2222
set(__PYTHON_QT_BINDING_SHIBOKEN_HELPER_INCLUDED TRUE)
2323

24+
# In CMake 3.27 and later, FindPythonInterp and FindPythonLibs are deprecated.
25+
# However, Shiboken2 as packaged in Ubuntu 24.04 still use them, so set CMP0148 to
26+
# "OLD" to silence this warning.
27+
cmake_policy(SET CMP0148 OLD)
2428
find_package(Shiboken2 QUIET)
2529
if(Shiboken2_FOUND)
2630
message(STATUS "Found Shiboken2 version ${Shiboken2_VERSION}")

0 commit comments

Comments
 (0)