From 1bf59ded665ebd20b2633a43abab4a89d34fff4f Mon Sep 17 00:00:00 2001 From: Yves Starreveld Date: Fri, 27 Dec 2002 11:14:52 -0500 Subject: ENH: find python framework and include files on OSX --- Modules/FindPythonLibs.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake index e11fa7b..5ab35a8 100644 --- a/Modules/FindPythonLibs.cmake +++ b/Modules/FindPythonLibs.cmake @@ -71,3 +71,15 @@ IF (WIN32) PYTHON_INCLUDE_PATH ) ENDIF(WIN32) + +# Python Should be built and installed as a Framework on OSX +IF (APPLE) + IF (EXISTS ~/Library/Frameworks/Python.framework) + SET (PYTHON_LIBRARY "-framework Python" CACHE FILEPATH "Python Framework" FORCE) + SET (PYTHON_INCLUDE_PATH "~/Library/Frameworks/Python.framework/Headers" CACHE INTERNAL "Hack into the framework") + ENDIF (EXISTS ~/Library/Frameworks/Python.framework) + IF (EXISTS /Library/Frameworks/Python.framework) + SET (PYTHON_LIBRARY "-framework Python" CACHE FILEPATH "Python Framework" FORCE) + SET (PYTHON_INCLUDE_PATH "/Library/Frameworks/Python.framework/Headers" CACHE INTERNAL "Hack into the framework") + ENDIF (EXISTS /Library/Frameworks/Python.framework) +ENDIF (APPLE) \ No newline at end of file -- cgit v0.12