g2c: +utils requires +build_v2_api (#50114)
This commit is contained in:
parent
9f4c677e46
commit
2967bb5540
@ -38,22 +38,16 @@ class G2c(CMakePackage):
|
|||||||
when="@1.7:",
|
when="@1.7:",
|
||||||
)
|
)
|
||||||
variant(
|
variant(
|
||||||
"pthreads",
|
"pthreads", default=False, description="Turn on thread-safety with pthreads", when="@2:"
|
||||||
default=False,
|
|
||||||
description="Turn on thread-safety with pthreads",
|
|
||||||
when="@develop",
|
|
||||||
)
|
)
|
||||||
variant(
|
variant(
|
||||||
"utils",
|
"utils", default=True, description="Build and install some utility programs", when="@2:"
|
||||||
default=True,
|
|
||||||
description="Build and install some utility programs",
|
|
||||||
when="@develop",
|
|
||||||
)
|
)
|
||||||
variant(
|
variant(
|
||||||
"build_v2_api",
|
"build_v2_api",
|
||||||
default=False,
|
default=True,
|
||||||
description="Build new g2c API, experimental until 2.0.0 release",
|
description="Build new g2c API, experimental until 2.0.0 release",
|
||||||
when="@develop",
|
when="@2:",
|
||||||
)
|
)
|
||||||
|
|
||||||
depends_on("c", type="build")
|
depends_on("c", type="build")
|
||||||
@ -64,6 +58,7 @@ class G2c(CMakePackage):
|
|||||||
depends_on("openjpeg", when="+openjpeg")
|
depends_on("openjpeg", when="+openjpeg")
|
||||||
depends_on("libxml2@2.9:", when="+build_v2_api")
|
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")
|
conflicts("+jasper +openjpeg", msg="Either Jasper or OpenJPEG should be used, not both")
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user