r3d: add pic variant (#36476)
This commit is contained in:
parent
2ca471745c
commit
fefa4b8cc4
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue