File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ cmake_minimum_required(VERSION 3.1)
1111if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR )
1212 project (xtensor-python-test)
1313
14+ find_package (pybind11 REQUIRED )
15+ set (PYBIND11_INCLUDE_DIR ${pybind11_INCLUDE_DIR} )
16+
1417 find_package (xtensor REQUIRED CONFIG )
1518 set (XTENSOR_INCLUDE_DIR ${xtensor_INCLUDE_DIR} )
1619
1720 find_package (xtensor-python REQUIRED CONFIG )
18- set (XTENSOR_INCLUDE_DIR ${xtensor-python_INCLUDE_DIR})
21+ set (XTENSOR_PYTHON_INCLUDE_DIR ${xtensor-python_INCLUDE_DIR})
1922endif ()
2023
2124message (STATUS "Forcing tests build type to Release" )
@@ -83,6 +86,7 @@ find_package(Threads)
8386include_directories (${XTENSOR_INCLUDE_DIR} )
8487include_directories (${XTENSOR_PYTHON_INCLUDE_DIR} )
8588include_directories (${GTEST_INCLUDE_DIRS} )
89+ include_directories (${PYBIND11_INCLUDE_DIR} )
8690
8791set (XTENSOR_PYTHON_TESTS
8892 main.cpp
You can’t perform that action at this time.
0 commit comments