From d86c0df332874f71f3e82300b185d4a0d41e6831 Mon Sep 17 00:00:00 2001 From: tayral Date: Wed, 11 Sep 2013 14:40:32 +0100 Subject: [PATCH] Fix #8 - Order of inclusion of Python include path and nunpy python include path reversed. --> on Ubuntu 12.04, there is a link numpy in /usr/include/python2.7 which was *before* the numpy include path, i.e. in this case the new version of numpy installed by virtualenv. By reversing the order of the include, the numpy arrayobject.h file of virtualenv is found first, the Python.h is found anyway in the correct system directory (does not change with new numpy version). O. Parcollet --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13dcb0f2..eba818a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,7 @@ if (PythonSupport) endif() set (TRIQS_LIBRARY_PYTHON ${PYTHON_LIBRARY} ${PYTHON_EXTRA_LIBS}) - set (TRIQS_INCLUDE_PYTHON ${PYTHON_INCLUDE_DIRS} ${PYTHON_NUMPY_INCLUDE_DIR}) + set (TRIQS_INCLUDE_PYTHON ${PYTHON_NUMPY_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS}) include_directories(SYSTEM ${TRIQS_INCLUDE_PYTHON} ) #include_directories(SYSTEM ${PYTHON_NUMPY_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})