15 Commits

Author SHA1 Message Date
Julien Cabieces
32cd01431b Correctly retrieve PyQt5 module directory 2024-04-24 09:16:28 +02:00
Juergen E. Fischer
c7417b8df6 FindPyQt5.cmake: skip PyQt5_sip 2021-10-02 01:04:42 +02:00
Sandro Mani
c5bb41dc01 PyQt5 cmake improvements 2021-09-30 12:13:29 +02:00
Denis Rouzaud
555f516925
use cmake native FindPython (#42497) 2021-03-28 21:49:40 +02:00
Alexander Bruy
60397ffa42 fix argument in the CMake IF statement (followup 4009fa8e22) 2020-07-20 12:21:27 +03:00
Daniel Minor
4009fa8e22 Fix FindPyQt5 cmake and python scripts
As written, the FindPyQt5.cmake and FindPyQt5.py scripts will succeed even if
PyQt5 is not installed. In FindPyQt5.cmake, we have PYQT5_FIND_REQUIRED rather
than PyQt5_FIND_REQUIRED, so the package is always treated as though it is
optional. In FindPyQt5.py, the script will succeed with a default location for
the sip directory, even if the PyQt5 directory is not located.

For some systems, if enough other dependencies are installed, the build can
get about halfway complete without the main PyQt5 dependency, and then fail
with a message like:

sip: Unable to find file "QtXml/QtXmlmod.sip"

I hit this building on Ubuntu, and there have been a few similar bug reports in
the past.
2020-07-16 08:41:14 +10:00
Sandro Mani
5c5237149c Pass NO_CMAKE_FIND_ROOT_PATH when invoking FIND_FILE to find local files
Otherwise, when cross-compiling, the prefix of the cross environment (i.e. /usr/x86_64-w64-mingw32/) is prepended to the path, leading to the files not being found
2019-07-31 11:03:06 +10:00
Juergen E. Fischer
4464089487 auto-detect name of sip module used by PyQt5 2018-10-24 13:38:03 +02:00
Denis Rouzaud
6c74e4ea5d spelling fixes 2017-01-12 22:01:50 +01:00
Larry Shaffer
e9fa3e0488 Check for Qt5 subdirectory in PYQT5_SIP_DIR 2016-11-20 15:30:12 -07:00
Matthias Kuhn
b1eb812792 Do not require manual CMakeCache intervention 2015-11-19 08:35:13 +01:00
Matthias Kuhn
eeef84b1f7 Revert "Deduplicated FindPyQt(4|5).py"
This reverts commit 842c17c10b2112b0d92ab287d76e374900736065 which was
responsible for test timeouts for dubious reasons.
2015-11-17 13:57:11 +01:00
Juergen E. Fischer
1675703ddb qt5 fixes 2015-11-17 01:00:08 +01:00
Matthias Kuhn
842c17c10b Deduplicated FindPyQt(4|5).py 2015-11-16 07:42:48 +01:00
Matthias Kuhn
0b6dd352c9 [py3] CMake updates to support Python3 and PyQt5 2015-11-16 07:42:47 +01:00