github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/3rd_party/snappy.patch (about) 1 diff --git a/CMakeLists.txt b/CMakeLists.txt 2 index 41a2124..4e214eb 100644 3 --- a/CMakeLists.txt 4 +++ b/CMakeLists.txt 5 @@ -143,7 +143,7 @@ if(SNAPPY_BUILD_TESTS) 6 "${PROJECT_SOURCE_DIR}/snappy-test.cc" 7 ) 8 target_compile_definitions(snappy_unittest PRIVATE -DHAVE_CONFIG_H) 9 - target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES}) 10 + target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES} ${GTEST_LIBRARIES} pthread) 11 12 if(HAVE_LIBZ) 13 target_link_libraries(snappy_unittest z)