summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/protobuf/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/protobuf/package.py b/var/spack/repos/builtin/packages/protobuf/package.py
index 295e57850e..508d16de73 100644
--- a/var/spack/repos/builtin/packages/protobuf/package.py
+++ b/var/spack/repos/builtin/packages/protobuf/package.py
@@ -125,10 +125,11 @@ class Protobuf(CMakePackage):
]
if self.spec.satisfies("@3.22:"):
+ cxxstd = self.spec["abseil-cpp"].variants["cxxstd"].value
args.extend(
[
self.define("protobuf_ABSL_PROVIDER", "package"),
- self.define("CMAKE_CXX_STANDARD", 14),
+ self.define("CMAKE_CXX_STANDARD", cxxstd),
]
)