diff options
author | Pramod S Kumbhar <pramod.r.s.kumbhar@gmail.com> | 2017-09-17 14:47:16 +0200 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-09-17 14:47:16 +0200 |
commit | 9aafe21b6328d5944469b7a0933e5a446133f876 (patch) | |
tree | 171d54958b5bbef016ebd116d70f95d81f43ba33 /lib/spack | |
parent | 0558fd640eadc979f8f44e0ffaf8b212dbd1b9e0 (diff) | |
download | spack-9aafe21b6328d5944469b7a0933e5a446133f876.tar.gz spack-9aafe21b6328d5944469b7a0933e5a446133f876.tar.bz2 spack-9aafe21b6328d5944469b7a0933e5a446133f876.tar.xz spack-9aafe21b6328d5944469b7a0933e5a446133f876.zip |
Filter system paths from CMAKE_PREFIX_PATH (#5385)
Diffstat (limited to 'lib/spack')
-rw-r--r-- | lib/spack/spack/build_systems/cmake.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py index edc9751c82..5b0f5526c9 100644 --- a/lib/spack/spack/build_systems/cmake.py +++ b/lib/spack/spack/build_systems/cmake.py @@ -29,6 +29,7 @@ import platform import spack.build_environment 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.package import PackageBase, InstallError, run_after @@ -149,6 +150,7 @@ class CMakePackage(PackageBase): # to find immediate link dependencies in right places: deps = [d.prefix for d in pkg.spec.dependencies(deptype=('build', 'link'))] + deps = filter_system_paths(deps) args.append('-DCMAKE_PREFIX_PATH:STRING={0}'.format(';'.join(deps))) return args |