diff --git a/recipes/boost/all/conanfile.py b/recipes/boost/all/conanfile.py index 59e992e38ee49..e7bf59a258f3e 100644 --- a/recipes/boost/all/conanfile.py +++ b/recipes/boost/all/conanfile.py @@ -1299,7 +1299,7 @@ def _toolset_tag(self): if self.settings.os == "Macos": os_ = "darwin" toolset_version = str(tools.Version(self.settings.compiler.version).major) - if self.settings.compiler in ("msvc", "Visual Studio"): + if str(self.settings.compiler) in ("msvc", "Visual Studio"): toolset_version = self._toolset_version.replace(".", "") toolset_parts = [compiler, os_]