Add pic variant to bacio (#32388)

* Add pic variant to bacio

* Fix black style error
This commit is contained in:
Dom Heinzeller 2022-08-26 10:24:34 -06:00 committed by GitHub
parent e41f9aad38
commit 26a16dc5bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,3 +27,10 @@ class Bacio(CMakePackage):
sha256="7b9b6ba0a288f438bfba6a08b6e47f8133f7dba472a74ac56a5454e2260a7200", sha256="7b9b6ba0a288f438bfba6a08b6e47f8133f7dba472a74ac56a5454e2260a7200",
preferred=True, 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