Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FindPyQt5.cmake: skip PyQt5_sip
  • Loading branch information
jef-n committed Oct 1, 2021
1 parent 5a572da commit c7417b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/FindPyQt5.cmake
Expand Up @@ -25,8 +25,7 @@ ELSE(EXISTS PYQT5_VERSION_STR)
IF(SIP_BUILD_EXECUTABLE)
# SIP >= 5.0 path


FILE(GLOB _pyqt5_metadata "${Python_SITEARCH}/PyQt5*.dist-info/METADATA")
FILE(GLOB _pyqt5_metadata "${Python_SITEARCH}/PyQt5-*.dist-info/METADATA")
IF(_pyqt5_metadata)
FILE(READ ${_pyqt5_metadata} _pyqt5_metadata_contents)
STRING(REGEX REPLACE ".*\nVersion: ([^\n]+).*$" "\\1" PYQT5_VERSION_STR ${_pyqt5_metadata_contents})
Expand Down

0 comments on commit c7417b8

Please sign in to comment.