Skip to content

Commit

Permalink
Update conanfile.py to match other recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Sep 13, 2024
1 parent d4192f8 commit 4ec5546
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from conan.errors import ConanInvalidConfiguration
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake, cmake_layout
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import AutoPackager, copy
from conan.tools.files import AutoPackager, copy, update_conandata
from conan.tools.build import check_min_cppstd
from conan.tools.microsoft import check_min_vs, is_msvc, is_msvc_static_runtime
from conan.tools.scm import Version
from conan.tools.scm import Version, Git


required_conan_version = ">=2.7.0"
Expand Down Expand Up @@ -41,6 +41,10 @@ def set_version(self):
if not self.version:
self.version = self.conan_data["version"]

def export(self):
git = Git(self)
update_conandata(self, {"version": self.version, "commit": git.get_commit()})

@property
def _min_cppstd(self):
return 17
Expand Down

0 comments on commit 4ec5546

Please sign in to comment.