From 42ca6c8bfc2b7598acd880a013f7898db5245004 Mon Sep 17 00:00:00 2001 From: David Beckingsale Date: Fri, 22 Aug 2014 13:52:30 -0700 Subject: Add dependency prefixes to CMAKE_PREFIX_PATH --- lib/spack/spack/build_environment.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index 38d5f70282..ec946cd2d7 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -143,6 +143,10 @@ def set_build_environment_variables(pkg): os.environ[SPACK_SPEC] = str(pkg.spec) os.environ[SPACK_DEBUG_LOG_DIR] = spack.spack_working_dir + # Add dependencies to CMAKE_PREFIX_PATH + dep_prefixes = [d.package.prefix for d in pkg.spec.dependencies.values()] + path_set("CMAKE_PREFIX_PATH", dep_prefixes) + def set_module_variables_for_package(pkg): """Populate the module scope of install() with some useful functions. -- cgit v1.2.3-70-g09d2