diff --git a/recipes/yojimbo/all/conanfile.py b/recipes/yojimbo/all/conanfile.py index b0acc018867348..be71ed9d886a97 100644 --- a/recipes/yojimbo/all/conanfile.py +++ b/recipes/yojimbo/all/conanfile.py @@ -8,6 +8,7 @@ from conan.tools.gnu import Autotools, AutotoolsDeps, AutotoolsToolchain from conan.tools.layout import basic_layout from conan.tools.microsoft import MSBuild, MSBuildDeps, MSBuildToolchain, is_msvc +from conan.tools.scm import Version required_conan_version = ">=1.53.0" @@ -47,6 +48,15 @@ def requirements(self): self.requires("libsodium/1.0.19") self.requires("mbedtls/2.28.4") # v3+ is not supported + @property + def _settings_build(self): + return getattr(self, "settings_build", self.settings) + + def validate_build(self): + if self._settings_build.build_type == "Debug" and self._settings_build.os != "Windows": + if self._settings_build.compiler == "gcc" and Version(self._settings_build.compiler.version) < 8: + raise ConanInvalidConfiguration("Debug build requires GCC >= 8 due to util-linux-libuuid") + def build_requirements(self): self.tool_requires("premake/5.0.0-alpha15")