Skip to content

Commit 2b753a2

Browse files
author
jef
committedMay 15, 2010
fix #2720
git-svn-id: http://svn.osgeo.org/qgis/trunk@13488 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fd89513 commit 2b753a2

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed
 

‎cmake/FindPyQt4.cmake‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#
2323
# PYQT4_SIP_FLAGS - The SIP flags used to build PyQt.
2424

25-
IF(EXISTS PYQT4_VERSION_STR)
25+
IF(EXISTS PYQT4_VERSION)
2626
# Already in cache, be silent
2727
SET(PYQT4_FOUND TRUE)
28-
ELSE(EXISTS PYQT4_VERSION_STR)
28+
ELSE(EXISTS PYQT4_VERSION)
2929

3030
FIND_FILE(_find_pyqt_py FindPyQt.py PATHS ${CMAKE_MODULE_PATH})
3131

@@ -50,10 +50,4 @@ ELSE(EXISTS PYQT4_VERSION_STR)
5050
ENDIF(PYQT4_FIND_REQUIRED)
5151
ENDIF(PYQT4_FOUND)
5252

53-
ENDIF(EXISTS PYQT4_VERSION_STR)
54-
55-
STRING(REGEX REPLACE "^([0-9]*)\\.[0-9]*\\.[0-9]*$" "\\1" PYQT4_MAJOR_VERSION ${PYQT4_VERSION_STR})
56-
STRING(REGEX REPLACE "^[0-9]*\\.([0-9]*)\\.[0-9]*$" "\\1" PYQT4_MINOR_VERSION ${PYQT4_VERSION_STR})
57-
STRING(REGEX REPLACE "^[0-9]*\\.[0-9]*\\.([0-9]*)$" "\\1" PYQT4_PATCH_VERSION ${PYQT4_VERSION_STR})
58-
MATH( EXPR PYQT4_NUM_VERSION "${PYQT4_MAJOR_VERSION}*10000 + ${PYQT4_MINOR_VERSION}*100 + ${PYQT4_PATCH_VERSION}")
59-
53+
ENDIF(EXISTS PYQT4_VERSION)

‎python/CMakeLists.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ IF(MSVC)
3535
ADD_DEFINITIONS(-DNOMINMAX)
3636
ENDIF(MSVC)
3737

38-
IF(${PYQT4_NUM_VERSION} LESS 40600)
38+
IF(PYQT4_VERSION_TAG LESS 263680) # 0x040600
3939
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} PROXY_FACTORY)
40-
ENDIF(${PYQT4_NUM_VERSION} LESS 40600)
40+
ENDIF(PYQT4_VERSION_TAG LESS 263680)
4141

4242
# core module
4343
FILE(GLOB sip_files_core core/*.sip)

0 commit comments

Comments
 (0)
Please sign in to comment.