mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 01:23:53 +00:00
consider pybind11 include directory before python
This is needed in case an older pybind11 version was installed with pip
This commit is contained in:
parent
e707497019
commit
e44e56fafc
@ -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")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Include path for Python header files
|
|
||||||
include_directories(${PYTHON_INCLUDE_DIR})
|
|
||||||
|
|
||||||
# Include path for pybind11 header files
|
# Include path for pybind11 header files
|
||||||
include_directories(include)
|
include_directories(include)
|
||||||
|
|
||||||
|
# Include path for Python header files
|
||||||
|
include_directories(${PYTHON_INCLUDE_DIR})
|
||||||
|
|
||||||
set(PYBIND11_HEADERS
|
set(PYBIND11_HEADERS
|
||||||
include/pybind11/attr.h
|
include/pybind11/attr.h
|
||||||
include/pybind11/cast.h
|
include/pybind11/cast.h
|
||||||
|
Loading…
Reference in New Issue
Block a user