nixos/kubernetes/kubelet: Fix sandbox image load on containerd 2.x (#364558)
[NixPkgs.git] / pkgs / applications / audio / radiotray-ng / no-dl-googletest.patch
blob3aee97516560839cc7d13a68088e08cd8592f2a4
1 From b6f7a9e2e0194c6baed63a33b7beff359080b8d9 Mon Sep 17 00:00:00 2001
2 From: Will Dietz <w@wdtz.org>
3 Date: Sat, 16 Mar 2019 11:40:00 -0500
4 Subject: [PATCH] don't download googletest
6 ---
7 CMakeLists.txt | 18 ------------------
8 tests/CMakeLists.txt | 1 -
9 2 files changed, 19 deletions(-)
11 diff --git a/CMakeLists.txt b/CMakeLists.txt
12 index ddba1be..3396705 100644
13 --- a/CMakeLists.txt
14 +++ b/CMakeLists.txt
15 @@ -70,25 +70,7 @@ endif()
17 # build tests? Then we need googletest...
18 if (BUILD_TESTS)
19 - include(ExternalProject)
21 - ExternalProject_Add(googletest
22 - PREFIX "${CMAKE_CURRENT_BINARY_DIR}/googletest"
23 - URL https://github.com/google/googletest/archive/release-1.8.1.tar.gz
24 - URL_HASH SHA256=9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c
25 - TIMEOUT 30
26 - DOWNLOAD_NO_PROGRESS true
27 - INSTALL_COMMAND "")
29 - ExternalProject_Get_Property(googletest SOURCE_DIR)
30 - include_directories(${SOURCE_DIR}/googlemock/include ${SOURCE_DIR}/googletest/include)
31 - ExternalProject_Get_Property(googletest BINARY_DIR)
32 - link_directories(${BINARY_DIR}/googlemock ${BINARY_DIR}/googlemock/gtest)
33 set(GMOCK_BOTH_LIBRARIES gmock_main gmock gtest)
34 - set_property(DIRECTORY PROPERTY CLEAN_NO_CUSTOM "${CMAKE_CURRENT_BINARY_DIR}/googletest")
35 - unset(SOURCE_DIR)
36 - unset(BINARY_DIR)
38 enable_testing()
39 add_subdirectory(tests)
40 add_subdirectory(tests/runners/)
41 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
42 index 859c048..58ab5c2 100644
43 --- a/tests/CMakeLists.txt
44 +++ b/tests/CMakeLists.txt
45 @@ -2,7 +2,6 @@ include(GoogleTest)
47 function(add_gmock_test target)
48 add_executable(${target} ${ARGN})
49 - add_dependencies(${target} googletest)
50 target_link_libraries(${target} config playlist bookmarks event_bus ${GMOCK_BOTH_LIBRARIES} ${XDG_BASEDIR_LIBRARIES} ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${JSONCPP_LIBRARIES} pthread)
51 target_include_directories(${target} PRIVATE ${JSONCPP_INCLUDE_DIRS})
52 gtest_discover_tests(${target})
53 --
54 2.22.0