Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cmake: Try harder to detect pybind11 when it's there and survive when not
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 7 Jun 2019 06:06:18 +0000 (08:06 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 7 Jun 2019 06:14:23 +0000 (08:14 +0200)
commit8e67e721f232a3d920e1eaf2f3c8c0b05fe36c07
tree1e48cb9497b3601c7a142a95c387cfc67e16fcf0
parent7e468190c6bde63f81b4bacb373b786a1b1cd612
cmake: Try harder to detect pybind11 when it's there and survive when not

This removes some cmake files that are internal to pybind11, because
on ubuntu-lts, there were a mismatch where it was taking the
system pybind11Config but the version of pybind11Tools that we
provide. The (older) system file was using a cmake function that is
not provided anymore by our recent pybind11Tools.

After this change, our pybind11Config is the upstream-provided one to
the exception that it survives to the absence of pybind11Tools (that
we don't provide). So two cases remain:

- our modified pybind11Config finds a usable pybind11Tools. This must
  be a system-wide pybind11Tools, meaning that pybin11 is installed and
  usable.
- our modified pybind11Config does not find any pybind11Tools. Don't
  try to use pybind11, but keep compiling SimGrid.
tools/cmake/Modules/pybind11Config.cmake
tools/cmake/Modules/pybind11ConfigVersion.cmake [deleted file]
tools/cmake/Modules/pybind11Targets.cmake [deleted file]
tools/cmake/Modules/pybind11Tools.cmake [deleted file]