From 8d87d12ce67aea8bf9dbbdb605e3487c736d0ac6 Mon Sep 17 00:00:00 2001 From: Marcus Hanwell Date: Wed, 17 Feb 2010 11:35:17 -0500 Subject: [PATCH] Do not force frameworks on Mac OS X - never worked well. --- Modules/FindPythonLibs.cmake | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake index 5c99e3fb4..4d3429d4f 100644 --- a/Modules/FindPythonLibs.cmake +++ b/Modules/FindPythonLibs.cmake @@ -89,22 +89,6 @@ MARK_AS_ADVANCED( PYTHON_INCLUDE_DIR ) -# Python Should be built and installed as a Framework on OSX -IF(Python_FRAMEWORKS) - # If a framework has been selected for the include path, - # make sure "-framework" is used to link it. - IF("${PYTHON_INCLUDE_DIR}" MATCHES "Python\\.framework") - SET(PYTHON_LIBRARY "") - SET(PYTHON_DEBUG_LIBRARY "") - ENDIF("${PYTHON_INCLUDE_DIR}" MATCHES "Python\\.framework") - IF(NOT PYTHON_LIBRARY) - SET (PYTHON_LIBRARY "-framework Python" CACHE FILEPATH "Python Framework" FORCE) - ENDIF(NOT PYTHON_LIBRARY) - IF(NOT PYTHON_DEBUG_LIBRARY) - SET (PYTHON_DEBUG_LIBRARY "-framework Python" CACHE FILEPATH "Python Framework" FORCE) - ENDIF(NOT PYTHON_DEBUG_LIBRARY) -ENDIF(Python_FRAMEWORKS) - # We use PYTHON_INCLUDE_DIR, PYTHON_LIBRARY and PYTHON_DEBUG_LIBRARY for the # cache entries because they are meant to specify the location of a single # library. We now set the variables listed by the documentation for this