Looks like when I try to build the test project standalone with the xtensor-python-dev package (which pulls xtensor-dev and pybind11-dev), the necessary include path for the Python headers is missing:
[ 55%] Building CXX object CMakeFiles/test_xtensor_python.dir/main.cpp.o
/usr/bin/c++ -I/home/gvaillan/debian/packages/xtensor-python/build/googletest-src/googletest/include -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -std=c++14 -O3 -DNDEBUG -o CMakeFiles/test_xtensor_python.dir/main.cpp.o -c /home/gvaillan/debian/packages/xtensor-python/test/main.cpp
/home/gvaillan/debian/packages/xtensor-python/test/main.cpp:9:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
I wonder which part in the root CMakeLists.txt is adding it. Perhaps the Numpy CMake detection which is missing from test/CMakeLists.txt?
Looks like when I try to build the test project standalone with the
xtensor-python-dev
package (which pullsxtensor-dev
andpybind11-dev
), the necessary include path for the Python headers is missing:I wonder which part in the root
CMakeLists.txt
is adding it. Perhaps the Numpy CMake detection which is missing fromtest/CMakeLists.txt
?