mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-22 23:19:14 +02:00
Fixes for CMake4, failing tests inside. Closes: https://bugs.gentoo.org/880353 Closes: https://bugs.gentoo.org/951904 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/41247 Signed-off-by: Sam James <sam@gentoo.org>
18 lines
660 B
Diff
18 lines
660 B
Diff
Use system GTest instead of fetching it
|
|
https://bugs.gentoo.org/880353
|
|
--- a/test/CMakeLists.txt 2025-03-23 22:20:35.060895402 +0300
|
|
+++ b/test/CMakeLists.txt 2025-03-23 22:22:29.964436254 +0300
|
|
@@ -33,12 +33,7 @@
|
|
set(BUILD_GMOCK OFF CACHE INTERNAL "Override gtest default" FORCE)
|
|
set(INSTALL_GTEST OFF CACHE INTERNAL "Override gtest default" FORCE)
|
|
|
|
-include(FetchContent)
|
|
-FetchContent_Declare(gtest
|
|
- GIT_REPOSITORY https://github.com/google/googletest.git
|
|
- GIT_TAG v1.15.2
|
|
-)
|
|
-FetchContent_MakeAvailable(gtest)
|
|
+find_package(GTest REQUIRED)
|
|
|
|
add_executable(st_gtests "")
|
|
target_link_libraries(st_gtests PRIVATE gtest gtest_main string_theory)
|