ECP-WarpX / impactx

high-performance modeling of beam dynamics in particle accelerators with collective effects
https://impactx.readthedocs.io
Other
28 stars 20 forks source link

`PYBIND11_FINDPYTHON=ON` #738

Closed ax3l closed 1 month ago

ax3l commented 1 month ago

Reuse our find_package(Python ...) call and use new CMake logic in pybind11. https://pybind11.readthedocs.io/en/stable/compiling.html#modules-with-cmake https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-version-selection

X-ref: https://github.com/openPMD/openPMD-api/pull/1677#issuecomment-2407767112

EZoni commented 1 month ago

@ax3l I think you're tracking whether this works or not on your end, so I let you merge or auto-merge.