From b2254febbfee6c3fd662ca978b630a14253e60c7 Mon Sep 17 00:00:00 2001 From: Iva Brajer Date: Wed, 31 Mar 2021 09:24:01 +0200 Subject: [PATCH] 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 b9a6de5707bf2..60e7b8e674e20 100644 --- a/recipes/boost/all/conanfile.py +++ b/recipes/boost/all/conanfile.py @@ -1007,7 +1007,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":