From bac49c0dd384d820f48f08fb0f9cbcf857ebb91d Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Thu, 13 Oct 2011 11:28:51 +0200 Subject: [PATCH] ENH: handle Python wrapper compilation with cmake 2.6-patch4 (support for centos 5.5) --- Code/Wrappers/SWIG/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Code/Wrappers/SWIG/CMakeLists.txt b/Code/Wrappers/SWIG/CMakeLists.txt index 32373e3bd2..2db5d4f82b 100644 --- a/Code/Wrappers/SWIG/CMakeLists.txt +++ b/Code/Wrappers/SWIG/CMakeLists.txt @@ -58,7 +58,9 @@ if ( WRAP_PYTHON ) check_PIC_flag ( Python ) find_package ( PythonLibs 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 set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_GLOBAL_FLAGS}) -- GitLab