Reputation: 29
I'd like to run T-spline from Github, but this error occurs every time
Error C1083
Cannot open include file: 'pybind11/pybind11.h': No such file or directory
I'm trying to build the project.
C:\Program Files (x86)
.pybind/pybind11
.laumaya/GLC_lib
.CMake (3.13.1)
for T-spline and everything looks fine.MSVC 15 2017
.Thank you!
Upvotes: 2
Views: 4245
Reputation: 22023
If you are using pybind11, then you shouldn't do it this way.
First make pybind11 a submodule in your git repo, or just check it out in your source tree and call:
add_subdirectory(${CMAKE_SOURCE_DIR}/3rdParty/pybind11)
Then you can create a pybind module:
pybind11_add_module(${NAME} MODULE ${SRC} ${HEADERS})
This way, if something is missing, you will see it when CMake starts, and not during building.
Upvotes: 1