cernlib: new variant shared (#39406)
This allows users to install cernlib with static libraries only, instead of both static and shared.
This commit is contained in:
parent
668fb1201f
commit
6c5d125cb0
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,8 @@ class Cernlib(CMakePackage):
|
|||
sha256="733d148415ef78012ff81f21922d3bf641be7514b0242348dd0200cf1b003e46",
|
||||
)
|
||||
|
||||
variant("shared", default=True, description="Build shared libraries")
|
||||
|
||||
depends_on("freetype")
|
||||
depends_on("motif")
|
||||
depends_on("libnsl")
|
||||
|
@ -35,5 +37,5 @@ def patch(self):
|
|||
filter_file("crypto", "crypt", "packlib/CMakeLists.txt")
|
||||
|
||||
def cmake_args(self):
|
||||
args = ["-DCERNLIB_BUILD_SHARED:BOOL=ON"]
|
||||
args = [self.define_from_variant("CERNLIB_BUILD_SHARED", "shared")]
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue