mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
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.
This commit is contained in:
@ -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 "----"
|
||||
|
||||
Reference in New Issue
Block a user