r3d: add pic variant (#36476)

This commit is contained in:
Richard Berger 2023-03-30 08:37:35 -06:00 committed by GitHub
parent 2ca471745c
commit fefa4b8cc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,10 @@ class R3d(CMakePackage):
description="Build R3D regression tests (versions 2019-04-24 or earlier)",
)
variant(
"pic", default=False, description="Produce position-independent code (for shared libs)"
)
@when("@:2019-04-24")
def cmake(self, spec, prefix):
pass
@ -80,4 +84,6 @@ def cmake_args(self):
else:
options.append("-DENABLE_UNIT_TESTS=OFF")
options.append(self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"))
return options