Skip to content
Permalink
Browse files
CMake: add default search paths on Mac for SIP
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6520 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 4, 2007
1 parent 8849ff4 commit 40f4d4d1f589ad1c47d595cff0f725bed1bb5ceb
Showing with 9 additions and 1 deletion.
  1. +9 −1 cmake/Python.cmake
@@ -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

0 comments on commit 40f4d4d

Please sign in to comment.