When building gRPC v1.0.1 with Visual Studio 2015 and using CMake for the 
build, I have had to modify the grpc/CMakeLists.txt and the 
third_party/boringssl/CMakeLists.txt.

I don't seem to be able to attach my CMakeLists.txt files but here is a 
summary:

grpc/CMakeLists.txt

   - added if(NOT MSVC) for the setting of the -std=c11 and -std=c++11 
   CMAKE_C_FLAGS and CMAKE_CXX_FLAGS.
   - added if (MSVC) for adding the ws2_32 library to the 
   grpc_print_google_default_creds_token and grpc_verify_jwt executables

grpc/thirdparty/boringssl/CMakeLists.txt

   - added the C4464, C4701, C4668, C4623 and C5027 warnings to the 
   MSVC_DISABLED_WARNINGS_LIST variable


I use the following command line to configure grpc

cmake -G "NMake Makefiles" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=
Release -DCMAKE_INSTALL_PREFIX=/grpc-1.0.1 -DCMAKE_CXX_FLAGS_RELEASE="/MT -D 
_WIN32_WINNT=0x600" -DCMAKE_C_FLAGS_RELEASE="/MT -D _WIN32_WINNT=0x600" ..


Hope this is helpful to others ...


-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/c5eedf74-c54d-4578-8db1-3e4192589357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to