MCPcopy Create free account
hub / github.com/pybind/pybind11 / get_cmake_dir

Function get_cmake_dir

pybind11/commands.py:18–27  ·  view source on GitHub ↗

Return the path to the pybind11 CMake module directory.

()

Source from the content-addressed store, hash-verified

16
17
18def 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
30def get_pkgconfig_dir() -> str:

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected