Skip to content

Commit

Permalink
[PyBind11] Work around bug on older pybind11 versions to find python
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiserls committed May 31, 2024
1 parent 8fa16a8 commit 5306d4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eulerpi/examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ find_package(Eigen3 REQUIRED)
# Maybe you have to do something linke this: sudo ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
message(STATUS "Eigen3 version ${EIGEN3_VERSION} found in ${EIGEN3_INCLUDE_DIR}")

set(PYBIND11_FINDPYTHON ON)
find_package(pybind11 REQUIRED)
pybind11_add_module(cpp_model wrapper.cpp cpp_model.hpp) # Add wrapper code and all library source files

Expand Down

0 comments on commit 5306d4a

Please sign in to comment.