Add pic variant to bacio (#32388)
* Add pic variant to bacio * Fix black style error
This commit is contained in:
parent
e41f9aad38
commit
26a16dc5bb
1 changed files with 7 additions and 0 deletions
|
@ -27,3 +27,10 @@ class Bacio(CMakePackage):
|
|||
sha256="7b9b6ba0a288f438bfba6a08b6e47f8133f7dba472a74ac56a5454e2260a7200",
|
||||
preferred=True,
|
||||
)
|
||||
|
||||
variant("pic", default=True, description="Build with position-independent-code")
|
||||
|
||||
def cmake_args(self):
|
||||
args = [self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic")]
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue