Skip to content

Commit

Permalink
yojimbo: fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Dec 30, 2023
1 parent bbdada5 commit 894f3de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipes/yojimbo/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 894f3de

Please sign in to comment.