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)",
|
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")
|
@when("@:2019-04-24")
|
||||||
def cmake(self, spec, prefix):
|
def cmake(self, spec, prefix):
|
||||||
pass
|
pass
|
||||||
|
@ -80,4 +84,6 @@ def cmake_args(self):
|
||||||
else:
|
else:
|
||||||
options.append("-DENABLE_UNIT_TESTS=OFF")
|
options.append("-DENABLE_UNIT_TESTS=OFF")
|
||||||
|
|
||||||
|
options.append(self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"))
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
Loading…
Reference in a new issue