diff options
Diffstat (limited to 'lib/spack/spack/build_systems/cmake.py')
-rw-r--r-- | lib/spack/spack/build_systems/cmake.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py index 4b679b358a..1336069846 100644 --- a/lib/spack/spack/build_systems/cmake.py +++ b/lib/spack/spack/build_systems/cmake.py @@ -325,13 +325,20 @@ class CMakePackage(PackageBase): libs_flags)) @property + def build_dirname(self): + """Returns the directory name to use when building the package + + :return: name of the subdirectory for building the package + """ + return 'spack-build-%s' % self.spec.dag_hash(7) + + @property def build_directory(self): """Returns the directory to use when building the package :return: directory where to build the package """ - dirname = 'spack-build-%s' % self.spec.dag_hash(7) - return os.path.join(self.stage.path, dirname) + return os.path.join(self.stage.path, self.build_dirname) def cmake_args(self): """Produces a list containing all the arguments that must be passed to |