summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris White <white238@llnl.gov>2023-08-01 08:57:56 -0700
committerGitHub <noreply@github.com>2023-08-01 08:57:56 -0700
commit8d2a32f66d6f1426a9f9bfac1cb8064e9d05ac89 (patch)
tree7c1d190780524735fa0def8b4552e414899d0a9a /lib
parentb28ae6736977beefdae997a52d5e5b6b072b8879 (diff)
downloadspack-8d2a32f66d6f1426a9f9bfac1cb8064e9d05ac89.tar.gz
spack-8d2a32f66d6f1426a9f9bfac1cb8064e9d05ac89.tar.bz2
spack-8d2a32f66d6f1426a9f9bfac1cb8064e9d05ac89.tar.xz
spack-8d2a32f66d6f1426a9f9bfac1cb8064e9d05ac89.zip
remove CMAKE_GENERATOR from the host-config because it cannot be overwritten on the command line (#39044)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/cached_cmake.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/spack/spack/build_systems/cached_cmake.py b/lib/spack/spack/build_systems/cached_cmake.py
index 457a722e1b..d85c2b7e19 100644
--- a/lib/spack/spack/build_systems/cached_cmake.py
+++ b/lib/spack/spack/build_systems/cached_cmake.py
@@ -162,17 +162,6 @@ class CachedCMakeBuilder(CMakeBuilder):
libs_string = libs_format_string.format(lang)
entries.append(cmake_cache_string(libs_string, libs_flags))
- # 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_mpi_entries(self):