Skip to content

Commit

Permalink
Change IF(...LESS...) into IF(...VERSION_LESS...)
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft authored and yorikvanhavre committed Jan 8, 2020
1 parent 17ed2b1 commit 1666b28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cMake/FindPySide2Tools.cmake
Expand Up @@ -25,19 +25,19 @@ endif(WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

FIND_PACKAGE(Qt5Core)

IF(Qt5Core_VERSION LESS 5.14)
IF(Qt5Core_VERSION VERSION_LESS 5.14)
# Legacy (< 5.14)
FIND_PROGRAM(PYSIDE2UICBINARY NAMES python2-pyside2-uic pyside2-uic pyside2-uic-${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} HINTS ${PYSIDE_BIN_DIR})
FIND_PROGRAM(PYSIDE2RCCBINARY NAMES pyside2-rcc pyside2-rcc-${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} HINTS ${PYSIDE_BIN_DIR})
set(UICOPTIONS "")
set(RCCOPTIONS "")
ELSE(Qt5Core_VERSION LESS 5.14)
ELSE(Qt5Core_VERSION VERSION_LESS 5.14)
# New (>= 5.14)
FIND_PROGRAM(PYSIDE2UICBINARY NAMES uic)
set(UICOPTIONS "--generator=python")
FIND_PROGRAM(PYSIDE2RCCBINARY NAMES rcc)
set(RCCOPTIONS "--generator=python" "--compress-algo=zlib" "--compress=1")
ENDIF(Qt5Core_VERSION LESS 5.14)
ENDIF(Qt5Core_VERSION VERSION_LESS 5.14)

MACRO(PYSIDE_WRAP_UI outfiles)
FOREACH(it ${ARGN})
Expand Down

0 comments on commit 1666b28

Please sign in to comment.