guru/dev-cpp/tiny-dnn/files/tiny-dnn-disable-gtest-download.patch
Alessandro Barbieri 1fab63f837
dev-cpp/tiny-dnn: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-05-27 11:35:36 +02:00

30 lines
894 B
Diff

--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -2,17 +2,6 @@
enable_testing()
-include(../cmake/DownloadProject/DownloadProject.cmake)
-#set(gtest_disable_pthreads on) #TODO(randl): Windows?
-download_project(
- PROJ googletest
- GIT_REPOSITORY https://github.com/google/googletest.git
- GIT_TAG master
- UPDATE_DISCONNECTED 1
-)
-
-add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
-
enable_testing()
# in ../googletest-src/googletest/CMakeLists.txt, BUILD_SHARED_LIBS is set to OFF
@@ -29,7 +18,7 @@
add_executable(tiny_dnn_test test.cpp test_no_duplicate_symbols.cpp)
target_link_libraries(tiny_dnn_test
- ${project_library_target_name} ${REQUIRED_LIBRARIES} gtest gmock)
+ ${project_library_target_name} ${REQUIRED_LIBRARIES})
add_test(all_tests tiny_dnn_test)
# workaround for https://gitlab.kitware.com/cmake/cmake/issues/8774