Skip to content

Commit

Permalink
pybamm-team#3480 use an alternative way for CMake to detect pybind11
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Nov 25, 2023
1 parent f20f035 commit 5887feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ endif()
# casadi seems to compile without the newer versions of std::string
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)

find_package(pybind11 REQUIRED)
find_package(pybind11 CONFIG REQUIRED)

pybind11_add_module(idaklu
pybamm/solvers/c_solvers/idaklu/casadi_functions.cpp
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = [
# On Windows, use the CasADi vcpkg registry and CMake bundled from MSVC
"casadi>=3.6.0; platform_system!='Windows'",
"cmake; platform_system!='Windows'",
"pybind11>=2.11.1",
"pybind11[global]>=2.11.1",
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit 5887feb

Please sign in to comment.