CMakeLists.txt
6.35 KB
-
CMake: Remember Python Version (#1434) · 13043957
It is useful not only to remember the python libs and includes but also the interpreter version in cache. If users call pybind11 throught `add_subdirectories` they will otherwise have no access to the selected interpreter version. The interpreter version is useful for downstream projects, e.g. to select default `lib/pythonX.Y/site-packages/` install paths.
Axel Huebl committed