diff --git a/recipes/scnlib/all/conanfile.py b/recipes/scnlib/all/conanfile.py index 14a3e596b4a2a..24ceccc7b0a31 100644 --- a/recipes/scnlib/all/conanfile.py +++ b/recipes/scnlib/all/conanfile.py @@ -82,7 +82,7 @@ def validate(self): # TODO: This should probably be a del self.options.header_only in config_options once the CI supports it if self.options.header_only: raise ConanInvalidConfiguration(f"{self.ref} doesn't support header only mode.") - if self.settings.compiler == "gcc" and Version(self.settings.compiler.version).major == "11": + if Version(self.version) < "3.0.2" and self.settings.compiler == "gcc" and Version(self.settings.compiler.version).major == "11": raise ConanInvalidConfiguration(f"{self.ref} doesn't support gcc 11.x due to std::regex_constants::multiline is not defined.") def build_requirements(self):