cmake.py: include transitive run deps in CMAKE_PREFIX_PATH
- Run deps often need to be located during the build - In cases like python-venv and python, where there's a direct build dep on both, but python-venv has a run dep on python, meaning we'd rather see python-venv in path before python topologically.
This commit is contained in:
parent
e37e53cfe8
commit
25c74506a3
@ -170,7 +170,7 @@ def get_cmake_prefix_path(pkg: spack.package_base.PackageBase) -> List[str]:
|
|||||||
edges = traverse.traverse_topo_edges_generator(
|
edges = traverse.traverse_topo_edges_generator(
|
||||||
traverse.with_artificial_edges([pkg.spec]),
|
traverse.with_artificial_edges([pkg.spec]),
|
||||||
visitor=traverse.MixedDepthVisitor(
|
visitor=traverse.MixedDepthVisitor(
|
||||||
direct=dt.BUILD | dt.TEST, transitive=dt.LINK, key=traverse.by_dag_hash
|
direct=dt.BUILD | dt.TEST, transitive=dt.LINK | dt.RUN, key=traverse.by_dag_hash
|
||||||
),
|
),
|
||||||
key=traverse.by_dag_hash,
|
key=traverse.by_dag_hash,
|
||||||
root=False,
|
root=False,
|
||||||
|
Loading…
Reference in New Issue
Block a user