Add pic variant when building the library (#41631)
* Add pic variant when building the library * make pretty * Probably better approach
This commit is contained in:
parent
f01774f1d4
commit
03625c1c95
@ -19,3 +19,9 @@ class Libvori(CMakePackage):
|
||||
version("201229", sha256="da0afb292c94f8de2aaebfd0b692d15ffd86083cb8a48478b07ca93823decc06")
|
||||
version("201224", sha256="16f6c49eaa17ea23868925dbaae2eca71bdacbe50418c97d6c55e05728038f31")
|
||||
version("201217", sha256="6ad456ed6ca5d28cadcc0d90eabe8fff5caa77b99f12764323de5e3ae21cddf5")
|
||||
|
||||
variant("pic", default=True, description="Compile the library with position independent code")
|
||||
|
||||
def cmake_args(self):
|
||||
args = [self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic")]
|
||||
return args
|
||||
|
Loading…
Reference in New Issue
Block a user