Add shared variant to geos package (#37899)

Co-authored-by: alexrichert <alexrichert@gmail.com>
This commit is contained in:
Alex Richert 2023-05-25 08:42:51 -07:00 committed by GitHub
parent 2f8cea2792
commit 60b4e2128b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,8 @@ class Geos(CMakePackage):
depends_on("cmake@3.13:", when="@3.10:", type="build")
depends_on("cmake@3.8:", type="build")
variant("shared", default=True, description="Build shared library")
patch(
"https://github.com/libgeos/geos/pull/461.patch?full_index=1",
sha256="ab78db7ff2e8fc89e899b8233cf77d90b24d88940dd202c4219decba479c8d35",
@ -73,4 +75,6 @@ def cmake_args(self):
if "%intel" in self.spec:
args.append(self.define("BUILD_ASTYLE", False))
args.append(self.define_from_variant("BUILD_SHARED_LIBS", "shared"))
return args