From 1d8a7b5b256cfa0010681ab9be1d918a85133c0a Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 6 Jun 2024 09:24:23 -0700 Subject: [PATCH] [BUILD] Remove the incorrect set of CMAKE_MSVC_RUNTIME_LIBRARY for vcpkg (#2696) --- CMakeLists.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d01d7054ef..0304beec50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -343,12 +343,6 @@ if(MSVC) # __cplusplus flag is not supported by Visual Studio 2015 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus") endif() - # When using vcpkg, all targets build with the same runtime - if(VCPKG_TOOLCHAIN) - set(CMAKE_MSVC_RUNTIME_LIBRARY - "MultiThreaded$<$:Debug>$<$:DLL>" - CACHE STRING "") - endif() endif() # include GNUInstallDirs before include cmake/opentelemetry-proto.cmake because