From 72d906807fe4cd4d42a95824b6fdd610b21232a5 Mon Sep 17 00:00:00 2001 From: memsharded Date: Tue, 25 Mar 2025 11:40:48 +0100 Subject: [PATCH] not defining compiler_executables for msvc --- conan_provider.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)