From 3d9e9dab953ef5bb4ae7213383bd618e8ebb04f9 Mon Sep 17 00:00:00 2001 From: Joel Falcou Date: Mon, 8 Aug 2022 11:01:56 +0200 Subject: [PATCH] Fixed Version issue --- recipes/jfalcou-eve/all/conanfile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/jfalcou-eve/all/conanfile.py b/recipes/jfalcou-eve/all/conanfile.py index d881c726bc9d05..6674557fb29804 100644 --- a/recipes/jfalcou-eve/all/conanfile.py +++ b/recipes/jfalcou-eve/all/conanfile.py @@ -1,4 +1,5 @@ from conan import ConanFile, tools +from conan.tools.scm import Version from conans.errors import ConanInvalidConfiguration required_conan_version = ">=1.33.0" @@ -26,7 +27,7 @@ def _min_cppstd(self): @property def _compilers_minimum_version(self): - if tools.scm.Version(self.version) >= "2022.03.0": + if Version(self.version) >= "2022.03.0": return { "gcc": "11", "Visual Studio": "16.9", @@ -35,7 +36,7 @@ def _compilers_minimum_version(self): } else: return { - "gcc": "10.2", + "gcc": "11", "Visual Studio": "16.9", "clang": "12", "apple-clang": "13", @@ -65,7 +66,7 @@ def package_id(self): self.info.header_only() def source(self): - tools.files.get(**self.conan_data["sources"][self.version], strip_root=True, + tools.files.get(self, **self.conan_data["sources"][self.version], strip_root=True, destination=self._source_subfolder) def package(self):