cmake, search $HOME/py32 for python now too.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 12 Mar 2011 04:39:43 +0000 (04:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 12 Mar 2011 04:39:43 +0000 (04:39 +0000)
build_files/cmake/FindPythonLibsUnix.cmake

index 9b25e4b79d44b6fe075cbf173d7405ab94d66e63..0752de4ce3cd18a93514b2c029ab62bf2e5946cb 100644 (file)
@@ -19,7 +19,7 @@ set(_Python_ABI_FLAGS
 
 string(REPLACE "." "" _PYTHON_VERSION_NO_DOTS ${PYTHON_VERSION})
 set(_Python_PATHS
-  "/opt/py${_PYTHON_VERSION_NO_DOTS}" "/usr" "/usr/local")
+  "$ENV{HOME}/py${_PYTHON_VERSION_NO_DOTS}" "/opt/py${_PYTHON_VERSION_NO_DOTS}" "/usr" "/usr/local")
 
 if(NOT DEFINED PYTHON_INCLUDE_DIRS)
        message(STATUS "Looking for include Python.h")