JOF
JOF

Reputation: 29

Error C1083 Cannot open include file: 'pybind11/pybind11.h': No such file or directory

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.

Thank you!

Upvotes: 2

Views: 4245

Answers (1)

Matthieu Brucher
Matthieu Brucher

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

Related Questions