summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kuberry <pakuber@sandia.gov>2023-02-07 12:00:15 -0700
committerGitHub <noreply@github.com>2023-02-07 14:00:15 -0500
commit8358f430a4094f2924b4026359f6691306114798 (patch)
tree542e0b86a54d8386392374becb8dcc2e9f8f0d30
parentec045f993bbebc8784191b3d2a02bdb723e30283 (diff)
downloadspack-8358f430a4094f2924b4026359f6691306114798.tar.gz
spack-8358f430a4094f2924b4026359f6691306114798.tar.bz2
spack-8358f430a4094f2924b4026359f6691306114798.tar.xz
spack-8358f430a4094f2924b4026359f6691306114798.zip
xyce: change cmake cxx compiler variable (#35365)
-rw-r--r--var/spack/repos/builtin/packages/xyce/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/xyce/package.py b/var/spack/repos/builtin/packages/xyce/package.py
index 2ac1b4f1ee..cdcc489834 100644
--- a/var/spack/repos/builtin/packages/xyce/package.py
+++ b/var/spack/repos/builtin/packages/xyce/package.py
@@ -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 @@ class Xyce(CMakePackage):
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"))