Skip to content

Commit

Permalink
Find uic and rcc on openSUSE
Browse files Browse the repository at this point in the history
openSUSE (and most likely other distributions) is renaming uic and rcc
to avoid file conflicts with Qt4.

Prefer these if they exist
  • Loading branch information
adrianschroeter authored and yorikvanhavre committed Jan 27, 2020
1 parent bdf4bfe commit 1bca539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cMake/FindPySide2Tools.cmake
Expand Up @@ -33,9 +33,9 @@ IF(Qt5Core_VERSION VERSION_LESS 5.14)
set(RCCOPTIONS "")
ELSE(Qt5Core_VERSION VERSION_LESS 5.14)
# New (>= 5.14)
FIND_PROGRAM(PYSIDE2UICBINARY NAMES uic)
FIND_PROGRAM(PYSIDE2UICBINARY NAMES uic-qt5 uic)
set(UICOPTIONS "--generator=python")
FIND_PROGRAM(PYSIDE2RCCBINARY NAMES rcc)
FIND_PROGRAM(PYSIDE2RCCBINARY NAMES rcc-qt5 rcc)
set(RCCOPTIONS "--generator=python" "--compress-algo=zlib" "--compress=1")
ENDIF(Qt5Core_VERSION VERSION_LESS 5.14)

Expand Down

0 comments on commit 1bca539

Please sign in to comment.