boost: Conditionally include/exclude Boost.Json depending on Boost version (#46200)

This commit is contained in:
Mikael Simberg
2024-09-05 00:50:06 +02:00
committed by GitHub
parent ee96194486
commit 9604c0a9b3

View File

@@ -690,6 +690,9 @@ def install(self, spec, prefix):
remove_if_in_list = lambda lib, libs: libs.remove(lib) if lib in libs else None
# Remove libraries that the release version does not support
if not spec.satisfies("@1.75.0:"):
remove_if_in_list("json", with_libs)
remove_if_in_list("json", without_libs)
if spec.satisfies("@1.69.0:"):
remove_if_in_list("signals", with_libs)
remove_if_in_list("signals", without_libs)