(additional_paths: "Sequence[str]" = ())
| 1327 | |
| 1328 | |
| 1329 | def 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 | |
| 1342 | if "wasm" in flags: |
no test coverage detected