Add a package manager root to the include directories
(library_root)
| 291 | _include_dirs = [d.replace('/', os.sep) for d in _include_dirs] |
| 292 | _lib_dirs = [d.replace('/', os.sep) for d in _lib_dirs] |
| 293 | def add_system_root(library_root): |
| 294 | """Add a package manager root to the include directories""" |
| 295 | global default_lib_dirs |
| 296 | global default_include_dirs |
| 297 | |
| 298 | library_root = os.path.normpath(library_root) |
| 299 | |
| 300 | default_lib_dirs.extend( |
| 301 | os.path.join(library_root, d) for d in _lib_dirs) |
| 302 | default_include_dirs.extend( |
| 303 | os.path.join(library_root, d) for d in _include_dirs) |
| 304 | |
| 305 | # VCpkg is the de-facto package manager on windows for C/C++ |
| 306 | # libraries. If it is on the PATH, then we append its paths here. |