Skip to content
Snippets Groups Projects
Commit bac49c0d authored by Julien Malik's avatar Julien Malik
Browse files

ENH: handle Python wrapper compilation with cmake 2.6-patch4 (support for centos 5.5)

parent 38780d28
Branches
Tags
No related merge requests found
...@@ -58,7 +58,9 @@ if ( WRAP_PYTHON ) ...@@ -58,7 +58,9 @@ if ( WRAP_PYTHON )
check_PIC_flag ( Python ) check_PIC_flag ( Python )
find_package ( PythonLibs REQUIRED ) find_package ( PythonLibs REQUIRED )
find_package ( PythonInterp REQUIRED ) find_package ( PythonInterp REQUIRED )
include_directories ( ${PYTHON_INCLUDE_DIR} )
# cmake 2.6 FindPython defines PYTHON_INCLUDE_PATH instead of PYTHON_INCLUDE_DIR
include_directories ( ${PYTHON_INCLUDE_DIR} ${PYTHON_INCLUDE_PATH} )
# Run swig # Run swig
set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_GLOBAL_FLAGS}) set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_GLOBAL_FLAGS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment