From 3c1379c985f697595e77fd1a03cea35e0bbb652b Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Wed, 13 May 2020 14:31:33 -0700 Subject: [PATCH] cmake build system: filter system paths from rpaths (#16612) --- lib/spack/spack/build_environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index 4809a1010e4..2d29ae7e35c 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -608,7 +608,7 @@ def get_rpaths(pkg): # module show output. if pkg.compiler.modules and len(pkg.compiler.modules) > 1: rpaths.append(get_path_from_module(pkg.compiler.modules[1])) - return rpaths + return list(dedupe(filter_system_paths(rpaths))) def get_std_cmake_args(pkg):