Skip to content

Commit

Permalink
ofeli: add cmake/3.16 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 1, 2023
1 parent 5658394 commit 0fd809e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/ofeli/5.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import copy, get, rmdir, replace_in_file, rename

required_conan_version = ">=1.53.0"
Expand Down Expand Up @@ -43,10 +44,15 @@ def validate(self):
if self.settings.compiler.libcxx != "libstdc++11":
raise ConanInvalidConfiguration("Ofeli only supports libstdc++'s new ABI")

def build_requirements(self):
self.tool_requires("cmake/[>=3.16 <4]")

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)

def generate(self):
env = VirtualBuildEnv(self)
env.generate()
tc = CMakeToolchain(self)
tc.generate()

Expand Down

0 comments on commit 0fd809e

Please sign in to comment.