From: Shaheed Haque Date: Sat, 09 Mar 2013 15:41:34 +0000 Subject: Fix Pate build for Qt 4.10 X-Git-Url: http://quickgit.kde.org/?p=kate.git&a=commitdiff&h=106f4ee310796170a28786a32f2a235d5464f83c --- Fix Pate build for Qt 4.10 Use a numeric comparision, not a case-sensitive sring comparision! --- --- a/kate/plugins/pate/CMakeLists.txt +++ b/kate/plugins/pate/CMakeLists.txt @@ -42,7 +42,7 @@ return() endif (NOT PYTHON_LIBRARY) if (NOT SIP_FOUND OR 0x${SIP_VERSION} LESS 0x40701) - message(WARNING "Pate plugin needs SIP 4.7.1 or later.") + message(WARNING "Pate plugin needs SIP 4.7.1 or later. " ${SIP_VERSION}) return() endif (NOT SIP_FOUND OR 0x${SIP_VERSION} LESS 0x40701) if (NOT SIP_EXECUTABLE OR NOT EXISTS ${SIP_EXECUTABLE}) @@ -57,10 +57,10 @@ message(WARNING "Pate plugin needs the PyKDE4 development sip files kdecoremod.sip") return() endif() -if (NOT PYQT4_FOUND OR PYQT4_VERSION LESS "040301") - message(WARNING "Pate plugin needs PyQT 4.3.1 or later.") +if (NOT PYQT4_FOUND OR 0x${PYQT4_VERSION} LESS 0x040301) + message(WARNING "Pate plugin needs PyQT 4.3.1 or later. " ${PYQT4_VERSION}) return() -endif (NOT PYQT4_FOUND OR PYQT4_VERSION LESS "040301") +endif (NOT PYQT4_FOUND OR 0x${PYQT4_VERSION} LESS 0x040301) if (NOT PYKDE4_FOUND) message(WARNING "Pate plugin needs PyKDE4.") return()