diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/lbann/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lbann/package.py b/var/spack/repos/builtin/packages/lbann/package.py index e491ad365d..9872ed7699 100644 --- a/var/spack/repos/builtin/packages/lbann/package.py +++ b/var/spack/repos/builtin/packages/lbann/package.py @@ -367,6 +367,17 @@ class Lbann(CachedCMakePackage, CudaPackage, ROCmPackage): entries.append(cmake_cache_string("CMAKE_EXE_LINKER_FLAGS", "-fuse-ld=gold")) entries.append(cmake_cache_string("CMAKE_SHARED_LINKER_FLAGS", "-fuse-ld=gold")) + # Set the generator in the cached config + if self.spec.satisfies("generator=make"): + entries.append(cmake_cache_string("CMAKE_GENERATOR", "Unix Makefiles")) + if self.spec.satisfies("generator=ninja"): + entries.append(cmake_cache_string("CMAKE_GENERATOR", "Ninja")) + entries.append( + cmake_cache_string( + "CMAKE_MAKE_PROGRAM", "{0}/ninja".format(spec["ninja"].prefix.bin) + ) + ) + return entries def initconfig_hardware_entries(self): |