From 7c84be59f686ca0303aeddbcfb028b0d06f70332 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 15 Dec 2019 11:02:14 +0100 Subject: Support PyQt5 compiled with SIP 5 When PyQt5 is compiled with SIP 5, the sip files are installed to ${python-site-packages}/PyQt5/bindings, so search for them there too. This doesn't add support for compiling KF5 bindings themselves with sip5, that requires more work. Differential Revision: https://phabricator.kde.org/D25972 --- find-modules/FindPythonModuleGeneration.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'find-modules/FindPythonModuleGeneration.cmake') diff --git a/find-modules/FindPythonModuleGeneration.cmake b/find-modules/FindPythonModuleGeneration.cmake index 9a342204..6d4f97eb 100644 --- a/find-modules/FindPythonModuleGeneration.cmake +++ b/find-modules/FindPythonModuleGeneration.cmake @@ -309,6 +309,7 @@ get_filename_component(libclang_file "${libclang_file}" REALPATH) find_file(SIP_Qt5Core_Mod_FILE NAMES QtCoremod.sip + HINTS ${KDE_INSTALL_PYTHON3DIR}/PyQt5/bindings/QtCore PATH_SUFFIXES share/sip/PyQt5/QtCore ) -- cgit v1.2.1