From d0bd4cdb8f6161a84fb32649afbf05852827c8e9 Mon Sep 17 00:00:00 2001 From: ivabrajer <43069820+ivabrajer@users.noreply.github.com> Date: Sat, 24 Apr 2021 16:32:10 +0200 Subject: [PATCH] (#5099) Fix for Boost build failure on Windows when not able to find MSVC toolset --- recipes/boost/all/conanfile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes/boost/all/conanfile.py b/recipes/boost/all/conanfile.py index bb1a7d1751c2e4..c86e98d195450c 100644 --- a/recipes/boost/all/conanfile.py +++ b/recipes/boost/all/conanfile.py @@ -1020,7 +1020,11 @@ def create_library_config(deps_name, name): # Specify here the toolset with the binary if present if don't empty parameter : contents += '\nusing "%s" : %s : ' % (self._toolset, self._toolset_version) - contents += ' %s' % self._cxx.replace("\\", "/") + + if self._is_msvc: + contents += ' "%s"' % self._cxx.replace("\\", "/") + else: + contents += ' %s' % self._cxx.replace("\\", "/") if tools.is_apple_os(self.settings.os): if self.settings.compiler == "apple-clang":