xyce: change cmake cxx compiler variable (#35365)

This commit is contained in:
Paul Kuberry 2023-02-07 12:00:15 -07:00 committed by GitHub
parent ec045f993b
commit 8358f430a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,7 @@ class Xyce(CMakePackage):
patch(
"https://github.com/xyce/xyce/commit/40dbc0e0341a5cf9a7fa82a87313869dc284fdd9.patch?full_index=1",
sha256="3c32faeeea0bb29be44ec20e414670c9fd375f9ed921a7f6e9fd3de02c28859d",
when="@:7.5 +shared",
when="@7.3:7.5 +shared",
)
def cmake_args(self):
@ -142,7 +142,7 @@ def cmake_args(self):
if "+mpi" in spec:
options.append(self.define("CMAKE_CXX_COMPILER", spec["mpi"].mpicxx))
else:
options.append(self.define("CMAKE_CXX_COMPILER", self.compiler.cxx))
options.append(self.define("CMAKE_CXX_COMPILER", spack_cxx))
options.append(self.define_from_variant("BUILD_SHARED_LIBS", "shared"))
options.append(self.define_from_variant("CMAKE_CXX_STANDARD", "cxxstd"))