Package: lizardfs / 3.12.0+dfsg-3

system-gtest.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Last-Update: 2014-12-05
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: use system "libgtest-dev" instead of bundled one; prevent on-demand downloading.

--- a/cmake/Libraries.cmake
+++ b/cmake/Libraries.cmake
@@ -1,8 +1,8 @@
 include(DownloadExternal)
 
 # Download GoogleTest
-if(ENABLE_TESTS)
+if(DOWNLOAD_GTEST)
   download_external(GTEST "googletest-release-1.7.0"
                     "https://github.com/google/googletest/archive/release-1.7.0.zip"
                     "ef5e700c8a0f3ee123e2e0209b8b4961")
 endif()
@@ -107,11 +107,12 @@
 
   endif()
 endif()
 
+set(GTEST_NAME gtest)
 # Find GoogleTest
 if(ENABLE_TESTS)
-  set(GTEST_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/external/${GTEST_DIR_NAME}/include)
+  set(GTEST_INCLUDE_DIRS /usr/include)
   set(TEST_LIBRARIES "" CACHE INTERNAL "" FORCE)
 endif()
 
 # Find Judy