Add dependency prefixes to CMAKE_PREFIX_PATH

This commit is contained in:
David Beckingsale 2014-08-22 13:52:30 -07:00 committed by Todd Gamblin
parent d87a652582
commit 42ca6c8bfc

View File

@ -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.