Skip to content

Commit

Permalink
Fixed Version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou committed Aug 8, 2022
1 parent 84f68aa commit 3d9e9da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/jfalcou-eve/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 3d9e9da

Please sign in to comment.