From dfbe7c83a03a4c56a6542f270adf4a39dee123ac36258f966c10dd979c45d4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 24 Jan 2020 12:15:16 +0000 Subject: [PATCH] fix OBS-URL: https://build.opensuse.org/package/show/science/FreeCAD?expand=0&rev=102 --- 0003-qt-5.14.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/0003-qt-5.14.patch b/0003-qt-5.14.patch index 44739c9..acd1436 100644 --- a/0003-qt-5.14.patch +++ b/0003-qt-5.14.patch @@ -23,19 +23,19 @@ index 9c9751488..7ca9690dc 100644 + +FIND_PACKAGE(Qt5Core) + -+IF(Qt5Core_VERSION GREATER 5.14) ++IF(Qt5Core_VERSION_STRING VERSION_GREATER 5.14) + # New (>= 5.14) + FIND_PROGRAM(PYSIDE2UICBINARY NAMES uic-qt5 uic) + set(UICOPTIONS "--generator=python") + FIND_PROGRAM(PYSIDE2RCCBINARY NAMES rcc-qt5 rcc) + set(RCCOPTIONS "--generator=python" "--compress-algo=zlib" "--compress=1") -+ELSE(Qt5Core_VERSION GREATER 5.14) ++ELSE(Qt5Core_VERSION_STRING VERSION_GREATER 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 "") -+ENDIF(Qt5Core_VERSION GREATER 5.14) ++ENDIF(Qt5Core_VERSION_STRING VERSION_GREATER 5.14) MACRO(PYSIDE_WRAP_UI outfiles) FOREACH(it ${ARGN})