73.patch 732 B

123456789101112131415161718192021222324
  1. From 89342ecf34894461cc64c9cbe3f8bc0d18df5073 Mon Sep 17 00:00:00 2001
  2. From: "liangyukun.lyk" <lyk19961210@gmail.com>
  3. Date: Mon, 27 Aug 2018 18:08:46 +0800
  4. Subject: [PATCH] fix cmake build error
  5. ---
  6. CMakeLists.txt | 3 +++
  7. 1 file changed, 3 insertions(+)
  8. diff --git a/CMakeLists.txt b/CMakeLists.txt
  9. index 41a2124..2a822dd 100644
  10. --- a/CMakeLists.txt
  11. +++ b/CMakeLists.txt
  12. @@ -145,6 +145,9 @@ if(SNAPPY_BUILD_TESTS)
  13. target_compile_definitions(snappy_unittest PRIVATE -DHAVE_CONFIG_H)
  14. target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES})
  15. + if(HAVE_GTEST)
  16. + target_link_libraries(snappy_unittest gtest)
  17. + endif(HAVE_GTEST)
  18. if(HAVE_LIBZ)
  19. target_link_libraries(snappy_unittest z)
  20. endif(HAVE_LIBZ)