Skip to content

Commit 72d9068

Browse files
memshardedjcar87
authored andcommitted
not defining compiler_executables for msvc
1 parent bcd6a93 commit 72d9068

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conan_provider.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,10 @@ macro(append_compiler_executables_configuration)
349349
# Not necessary to warn if RC not defined
350350
endif()
351351
if(NOT "x${_conan_compilers_list}" STREQUAL "x")
352-
string(REPLACE ";" "," _conan_compilers_list "${_conan_compilers_list}")
353-
string(APPEND profile "tools.build:compiler_executables={${_conan_compilers_list}}\n")
352+
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
353+
string(REPLACE ";" "," _conan_compilers_list "${_conan_compilers_list}")
354+
string(APPEND profile "tools.build:compiler_executables={${_conan_compilers_list}}\n")
355+
endif()
354356
endif()
355357
unset(_conan_c_compiler)
356358
unset(_conan_cpp_compiler)

0 commit comments

Comments
 (0)