diff options
author | Greg Becker <becker33@llnl.gov> | 2020-09-18 12:21:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-18 12:21:13 -0700 |
commit | 7585b378659fefb0c69ccb78a67731d34382e858 (patch) | |
tree | 651fb5491be98d64b0bf14224b7ad2c50d2be8ff /lib | |
parent | 58fb6cdaad2d966abc1f65aa4e20c654477d9db3 (diff) | |
download | spack-7585b378659fefb0c69ccb78a67731d34382e858.tar.gz spack-7585b378659fefb0c69ccb78a67731d34382e858.tar.bz2 spack-7585b378659fefb0c69ccb78a67731d34382e858.tar.xz spack-7585b378659fefb0c69ccb78a67731d34382e858.zip |
do out of source builds in hashed directories (#18574)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/cmake.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py index dfa2c9e47a..0f2970bb3e 100644 --- a/lib/spack/spack/build_systems/cmake.py +++ b/lib/spack/spack/build_systems/cmake.py @@ -314,7 +314,8 @@ class CMakePackage(PackageBase): :return: directory where to build the package """ - return os.path.join(self.stage.path, 'spack-build') + dirname = 'spack-build=%s' % self.spec.dag_hash(7) + return os.path.join(self.stage.path, dirname) def cmake_args(self): """Produces a list containing all the arguments that must be passed to |