diff --git a/conanfile.py b/conanfile.py index 65422c6..3a122d3 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from conans import ConanFile +from conans import ConanFile, tools from conans.errors import ConanInvalidConfiguration class NameofConan(ConanFile): @@ -29,7 +29,7 @@ class NameofConan(ConanFile): @property def supported_compiler(self): compiler = str(self.settings.compiler) - version = str(self.settings.compiler.version) + version = tools.Version(self.settings.compiler.version) if compiler == "Visual Studio" and version >= "15": return True if compiler == "gcc" and version >= "7":