Skip to content

Commit

Permalink
Set SIP minimal version to 4.7 (needed at least on OSX to support uni…
Browse files Browse the repository at this point in the history
…versal builds)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9622 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Nov 11, 2008
1 parent 4a190a2 commit 676df9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/Python.cmake
Expand Up @@ -63,15 +63,15 @@ IF (PYTHON_LIBRARIES AND PYTHON_INCLUDE_PATH)

IF (HAVE_SIP_MODULE AND SIP_BINARY_PATH AND SIP_INCLUDE_DIR)
# check for SIP version
# minimal version is 4.5
SET (SIP_MIN_VERSION 040500)
# minimal version is 4.7 (to support universal builds)
SET (SIP_MIN_VERSION 040700)
TRY_RUN_PYTHON (RES "import sip\nprint '%x' % sip.SIP_VERSION" SIP_VERSION)
IF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION GREATER "${SIP_MIN_VERSION}")
SET (SIP_IS_GOOD TRUE)
ENDIF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION GREATER "${SIP_MIN_VERSION}")

IF (NOT SIP_IS_GOOD)
MESSAGE (STATUS "SIP is required in version 4.5 or later!")
MESSAGE (STATUS "SIP is required in version 4.7 or later!")
ENDIF (NOT SIP_IS_GOOD)
ELSE (HAVE_SIP_MODULE AND SIP_BINARY_PATH AND SIP_INCLUDE_DIR)
IF (NOT HAVE_SIP_MODULE)
Expand Down

0 comments on commit 676df9d

Please sign in to comment.