diff options
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 |