From e44e56fafc8dd9eb5b63a030eefe6a3b3165be4d Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sat, 30 Apr 2016 22:59:58 +0200 Subject: [PATCH] consider pybind11 include directory before python This is needed in case an older pybind11 version was installed with pip --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2996e537b..4440b9040 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,12 +84,12 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") endif() -# Include path for Python header files -include_directories(${PYTHON_INCLUDE_DIR}) - # Include path for pybind11 header files include_directories(include) +# Include path for Python header files +include_directories(${PYTHON_INCLUDE_DIR}) + set(PYBIND11_HEADERS include/pybind11/attr.h include/pybind11/cast.h