1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

improve conan compiler version check (#24)

This commit is contained in:
Paul Kunysch 2020-01-31 10:55:50 +01:00 committed by GitHub
parent e01940170f
commit 2f0a3bcae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from conans import ConanFile
from conans import ConanFile, tools
from conans.errors import ConanInvalidConfiguration
class MagicEnumConan(ConanFile):
@ -29,7 +29,7 @@ class MagicEnumConan(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 >= "9":