g2c: +utils requires +build_v2_api (#50114)

This commit is contained in:
Alex Richert 2025-04-21 00:42:22 -07:00 committed by GitHub
parent 9f4c677e46
commit 2967bb5540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,22 +38,16 @@ class G2c(CMakePackage):
when="@1.7:",
)
variant(
"pthreads",
default=False,
description="Turn on thread-safety with pthreads",
when="@develop",
"pthreads", default=False, description="Turn on thread-safety with pthreads", when="@2:"
)
variant(
"utils",
default=True,
description="Build and install some utility programs",
when="@develop",
"utils", default=True, description="Build and install some utility programs", when="@2:"
)
variant(
"build_v2_api",
default=False,
default=True,
description="Build new g2c API, experimental until 2.0.0 release",
when="@develop",
when="@2:",
)
depends_on("c", type="build")
@ -64,6 +58,7 @@ class G2c(CMakePackage):
depends_on("openjpeg", when="+openjpeg")
depends_on("libxml2@2.9:", when="+build_v2_api")
conflicts("+utils ~build_v2_api", msg="+utils requires G2C API")
conflicts("+jasper +openjpeg", msg="Either Jasper or OpenJPEG should be used, not both")
def cmake_args(self):