From 7411fe2d4322bcd987b41842cafc5afd15b3a991 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Wed, 13 May 2020 14:31:33 -0700 Subject: 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 8d84cdaf65..3510ae8ac8 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -615,7 +615,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): -- cgit v1.2.3-70-g09d2