diff --git a/conan_provider.cmake b/conan_provider.cmake index 0d2be004..d82fec08 100644 --- a/conan_provider.cmake +++ b/conan_provider.cmake @@ -349,8 +349,10 @@ macro(append_compiler_executables_configuration) # Not necessary to warn if RC not defined endif() if(NOT "x${_conan_compilers_list}" STREQUAL "x") - string(REPLACE ";" "," _conan_compilers_list "${_conan_compilers_list}") - string(APPEND profile "tools.build:compiler_executables={${_conan_compilers_list}}\n") + if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + string(REPLACE ";" "," _conan_compilers_list "${_conan_compilers_list}") + string(APPEND profile "tools.build:compiler_executables={${_conan_compilers_list}}\n") + endif() endif() unset(_conan_c_compiler) unset(_conan_cpp_compiler)