Filter system paths from CMAKE_PREFIX_PATH (#5385)

This commit is contained in:
Pramod S Kumbhar 2017-09-17 14:47:16 +02:00 committed by Massimiliano Culpo
parent 0558fd640e
commit 9aafe21b63

View file

@ -29,6 +29,7 @@
import spack.build_environment import spack.build_environment
from llnl.util.filesystem import working_dir, join_path from llnl.util.filesystem import working_dir, join_path
from spack.util.environment import filter_system_paths
from spack.directives import depends_on, variant from spack.directives import depends_on, variant
from spack.package import PackageBase, InstallError, run_after from spack.package import PackageBase, InstallError, run_after
@ -149,6 +150,7 @@ def _std_args(pkg):
# to find immediate link dependencies in right places: # to find immediate link dependencies in right places:
deps = [d.prefix for d in deps = [d.prefix for d in
pkg.spec.dependencies(deptype=('build', 'link'))] pkg.spec.dependencies(deptype=('build', 'link'))]
deps = filter_system_paths(deps)
args.append('-DCMAKE_PREFIX_PATH:STRING={0}'.format(';'.join(deps))) args.append('-DCMAKE_PREFIX_PATH:STRING={0}'.format(';'.join(deps)))
return args return args