Skip to content

Commit

Permalink
CMake: add default search paths on Mac for SIP
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6520 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 4, 2007
1 parent 38f89fc commit 7ca9093
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmake/Python.cmake
Expand Up @@ -46,7 +46,15 @@ IF (PYTHON_LIBRARIES AND PYTHON_INCLUDE_PATH)

# check for SIP
TRY_RUN_PYTHON (HAVE_SIP_MODULE "from sip import wrapinstance")
FIND_PROGRAM (SIP_BINARY_PATH sip)

IF (APPLE)
SET (SIP_MAC_PATH
/System/Library/Frameworks/Python.framework/Versions/2.5/bin/
/System/Library/Frameworks/Python.framework/Versions/2.4/bin/
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/)
ENDIF (APPLE)

FIND_PROGRAM (SIP_BINARY_PATH sip ${SIP_MAC_PATH})

IF (HAVE_SIP_MODULE AND SIP_BINARY_PATH)
# check for SIP version
Expand Down

0 comments on commit 7ca9093

Please sign in to comment.