aboutsummaryrefslogtreecommitdiff
path: root/devel/fire-hpp/files/patch-tests_CMakeLists.txt
blob: dd206718dc804496f4d78f2d21c1061d48c834b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- https://gitlab.kitware.com/cmake/cmake/-/issues/21686
- https://github.com/kongaskristjan/fire-hpp/issues/11

--- tests/CMakeLists.txt.orig	2021-01-10 21:55:57 UTC
+++ tests/CMakeLists.txt
@@ -6,7 +6,7 @@ if(${CMAKE_VERSION} VERSION_GREATER "3.11.0")
     include(GoogleTest)
 
     enable_testing()
-
+if (FALSE)
     FetchContent_Declare(
             googletest
             GIT_REPOSITORY https://github.com/google/googletest.git
@@ -18,7 +18,7 @@ if(${CMAKE_VERSION} VERSION_GREATER "3.11.0")
         FetchContent_Populate(googletest)
         add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
     endif()
-
+endif()
     add_executable(run_tests tests.cpp)
     target_link_libraries(run_tests fire-hpp gtest gtest_main)
     gtest_discover_tests(run_tests)