mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / pybind11 / setup-hook.sh
bloba86eed36f1ec7c0ae307f6d4fd9be9b626d300d9
1 # Tell the pybind11 CMake module where to find host platform Python. This is
2 # required when cross-compiling.
3 pybind11CMakeFlags () {
4 cmakeFlagsArray+=(
5 '-DPYBIND11_PYTHONLIBS_OVERWRITE=OFF'
6 '-DPYTHON_EXECUTABLE=@pythonInterpreter@'
7 '-DPYTHON_INCLUDE_DIR=@pythonIncludeDir@'
8 '-DPYTHON_SITE_PACKAGES=@pythonSitePackages@'
12 preConfigureHooks+=(pybind11CMakeFlags)