Return the path to the pybind11 CMake module directory.
()
| 16 | |
| 17 | |
| 18 | def get_cmake_dir() -> str: |
| 19 | """ |
| 20 | Return the path to the pybind11 CMake module directory. |
| 21 | """ |
| 22 | cmake_installed_path = os.path.join(DIR, "share", "cmake", "pybind11") |
| 23 | if os.path.exists(cmake_installed_path): |
| 24 | return cmake_installed_path |
| 25 | |
| 26 | msg = "pybind11 not installed, installation required to access the CMake files" |
| 27 | raise ImportError(msg) |
| 28 | |
| 29 | |
| 30 | def get_pkgconfig_dir() -> str: |