Limit patching Catch2 to the newer @3: version range (#42019)

This commit is contained in:
Tal Ben-Nun 2024-01-17 15:12:19 -08:00 committed by GitHub
parent 277e1ff396
commit 349867c879
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,6 +122,7 @@ class Catch2(CMakePackage):
)
variant("shared", when="@3:", default=False, description="Build shared library")
@when("@3:")
def patch(self):
filter_file(
r"#include \<catch2",