remove CMAKE_GENERATOR from the host-config because it cannot be overwritten on the command line (#39044)

This commit is contained in:
Chris White 2023-08-01 08:57:56 -07:00 committed by GitHub
parent b28ae67369
commit 8d2a32f66d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,17 +162,6 @@ def initconfig_compiler_entries(self):
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):