Skip to content

Commit

Permalink
fix compiler version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Sep 22, 2022
1 parent cabf971 commit 02308f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/benchmark/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def layout(self):
cmake_layout(self, src_folder="src")

def validate(self):
if self.info.settings.compiler == "Visual Studio" and Version(self.info.settings.compiler.version) <= 12:
if self.info.settings.compiler == "Visual Studio" and Version(self.info.settings.compiler.version) <= "12":
raise ConanInvalidConfiguration(f"{self.ref} doesn't support Visual Studio <= 12")
if Version(self.version) < "1.7.0" and is_msvc(self) and self.info.options.shared:
raise ConanInvalidConfiguration(f"{self.ref} doesn't support msvc shared builds")
Expand Down

0 comments on commit 02308f7

Please sign in to comment.