1# Tell the pybind11 CMake module where to find host platform Python. This is
2# required when cross-compiling.
3pybind11CMakeFlags () {
4 cmakeFlagsArray+=(
5 '-DPYBIND11_PYTHONLIBS_OVERWRITE=OFF'
6 '-DPYTHON_EXECUTABLE=@pythonInterpreter@'
7 '-DPYTHON_INCLUDE_DIR=@pythonIncludeDir@'
8 '-DPYTHON_SITE_PACKAGES=@pythonSitePackages@'
9 )
10}
11
12preConfigureHooks+=(pybind11CMakeFlags)