Removed setting CMAKE_FIND_LIBRARY_SUFFIXES to fix configure error in Windows

This commit is contained in:
Hongxu Xu 2019-04-21 17:01:16 +08:00
parent 23ae7eb168
commit 49c282da32

View File

@ -7,8 +7,8 @@ index 3839e22..91720a9 100644
add_definitions(-DPB_FIELD_32BIT)
+if (gRPC_STATIC_LINKING)
+ # Force to static link
+ set(CMAKE_EXE_LINKER_FLAGS "-Bstatic")
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
+endif()
+
if (MSVC)