Fix regression in MSVC runtime flag

In attempting to fix a CMake style issue, a variable dereference
was accidentally removed that should have been left alone. Restore
it to how it was.
pull/21792/head
Kyle Edwards 5 years ago
parent 5791495f59
commit 8f0d88a2a2
  1. 2
      cmake/msvc_static_runtime.cmake

@ -22,7 +22,7 @@ if(gRPC_MSVC_STATIC_RUNTIME)
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO) CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
if(flag_var MATCHES "/MD") if(${flag_var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}") string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endif() endif()
endforeach() endforeach()

Loading…
Cancel
Save