Commit 85180484 authored by mark's avatar mark
Browse files

CONFIG: update cmake variables for paraview with python (issue #5)

- replace PYTHON_INCLUDE_PATH with PYTHON_INCLUDE_DIRS
  (changed in paraview 2014-10-30)

- add check for Python.h for earlier failure.
  Eg, when development headers are missing on the system.
parent f8e0b17a
......@@ -202,7 +202,7 @@ addPythonSupport()
pythonInclude=/usr/include/python$pythonMajor
# Note - we could also allow for a PYTHON_INCLUDE variable ...
[ -d "$pythonInclude" ] || {
[ -d "$pythonInclude" -a -f "$pythonInclude/Python.h" ] || {
echo " No python headers found in $pythonInclude/"
echo " Please install python headers or deactivate "
echo " python support by not using the -python option"
......@@ -210,7 +210,7 @@ addPythonSupport()
}
addCMakeVariable "PARAVIEW_ENABLE_PYTHON=ON"
addCMakeVariable "PYTHON_INCLUDE_PATH=$pythonInclude"
addCMakeVariable "PYTHON_INCLUDE_DIRS=$pythonInclude"
addCMakeVariable "PYTHON_LIBRARY=$PYTHON_LIBRARY"
echo "----"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment