Merge pull request #2826 from xfxyjwf/i1374

Add missing thread dependency in cmake.
This commit is contained in:
Feng Xiao 2017-03-10 15:03:15 -08:00 committed by GitHub
commit cd6eb91684

View file

@ -17,6 +17,7 @@ add_library(gmock STATIC
${protobuf_source_dir}/gmock/src/gmock-all.cc
${protobuf_source_dir}/gmock/gtest/src/gtest-all.cc
)
target_link_libraries(gmock ${CMAKE_THREAD_LIBS_INIT})
add_library(gmock_main STATIC ${protobuf_source_dir}/gmock/src/gmock_main.cc)
target_link_libraries(gmock_main gmock)