protobuf: use cxxstd from abseil-cpp to fix C++17 build (#38840)
This commit is contained in:
parent
6b51bfb713
commit
9ef138dad5
@ -125,10 +125,11 @@ def cmake_args(self):
|
|||||||
]
|
]
|
||||||
|
|
||||||
if self.spec.satisfies("@3.22:"):
|
if self.spec.satisfies("@3.22:"):
|
||||||
|
cxxstd = self.spec["abseil-cpp"].variants["cxxstd"].value
|
||||||
args.extend(
|
args.extend(
|
||||||
[
|
[
|
||||||
self.define("protobuf_ABSL_PROVIDER", "package"),
|
self.define("protobuf_ABSL_PROVIDER", "package"),
|
||||||
self.define("CMAKE_CXX_STANDARD", 14),
|
self.define("CMAKE_CXX_STANDARD", cxxstd),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user