mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
480 B
15 lines
480 B
8 years ago
|
option(gRPC_MSVC_STATIC_RUNTIME "Link with static msvc runtime libraries" OFF)
|
||
|
|
||
|
if(gRPC_MSVC_STATIC_RUNTIME)
|
||
|
# switch from dynamic to static linking of msvcrt
|
||
|
foreach(flag_var
|
||
|
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
|
||
|
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
|
||
|
|
||
|
if(${flag_var} MATCHES "/MD")
|
||
|
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
||
|
endif(${flag_var} MATCHES "/MD")
|
||
|
endforeach(flag_var)
|
||
|
endif()
|
||
|
|