aboutsummaryrefslogtreecommitdiff
path: root/find-modules
diff options
context:
space:
mode:
authorAntonio Rojas <arojas@archlinux.org>2019-12-15 11:02:14 +0100
committerAntonio Rojas <arojas@archlinux.org>2019-12-15 11:02:14 +0100
commit7c84be59f686ca0303aeddbcfb028b0d06f70332 (patch)
tree8925ff9447adb483bce17fa935d274a77b3e9668 /find-modules
parentf082ed20e6a8e5c4808922e52fefa630f9dd4959 (diff)
downloadextra-cmake-modules-7c84be59f686ca0303aeddbcfb028b0d06f70332.tar.gz
extra-cmake-modules-7c84be59f686ca0303aeddbcfb028b0d06f70332.tar.bz2
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
Diffstat (limited to 'find-modules')
-rw-r--r--find-modules/FindPythonModuleGeneration.cmake1
1 files changed, 1 insertions, 0 deletions
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
)