MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_cmake_args_prefix_path

Function get_cmake_args_prefix_path

nix/build-all.py:1329–1339  ·  view source on GitHub ↗
(additional_paths: "Sequence[str]" = ())

Source from the content-addressed store, hash-verified

1327
1328
1329def get_cmake_args_prefix_path(additional_paths: "Sequence[str]" = ()) -> "list[str]":
1330 args_prefix_path = cmake_args_prefix_path.copy()
1331 args_prefix_path.extend(additional_paths)
1332 prefix_path = ";".join(args_prefix_path)
1333 if WASM:
1334 # `emcmake` is disabling search in PATH, so we provide root paths instead.
1335 # Provide '/' to PATH, so it will be combined with provided root paths,
1336 # otherwise, depending on environment, it might not search the root path itself.
1337 return [f"-DCMAKE_FIND_ROOT_PATH={prefix_path}", "-DCMAKE_PREFIX_PATH=//"]
1338 else:
1339 return [f"-DCMAKE_PREFIX_PATH={prefix_path}"]
1340
1341
1342if "wasm" in flags:

Callers 2

build-all.pyFile · 0.85
compile_python_wrapperFunction · 0.85

Calls 2

extendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected