Skip to content

Commit

Permalink
re2: fix cmake cxx std (spack#45694)
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie authored Aug 12, 2024
1 parent 327c753 commit 966a775
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion var/spack/repos/builtin/packages/re2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def cmake_args(self):
args = [
self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"),
f"-DCMAKE_CXX_STANDARD={self.spec['abseil-cpp'].variants['cxxstd'].value}",
]

abseil = self.spec.dependencies("abseil-cpp")

if abseil:
args.append(self.define("CMAKE_CXX_STANDARD", abseil[0].variants["cxxstd"].value))
return args

0 comments on commit 966a775

Please sign in to comment.