blob: 858efc3b3e472fcd0f518a0160027e481629aa56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- a/cmake/SearchForStuff.cmake
+++ b/cmake/SearchForStuff.cmake
@@ -96,6 +95,0 @@
-if(ENABLE_TESTS)
- if(NOT EXISTS "${CMAKE_SOURCE_DIR}/3rdparty/gtest/CMakeLists.txt")
- message(WARNING "ENABLE_TESTS was on but gtest was not found, unit tests will not be enabled")
- set(ACTUALLY_ENABLE_TESTS Off)
- endif()
-endif()
--- a/tests/ctest/CMakeLists.txt
+++ b/tests/ctest/CMakeLists.txt
@@ -20 +20,2 @@
-add_subdirectory(gtest)
+find_package(GTest REQUIRED)
+alias_library(gtest_main GTest::gtest_main)
|