Skip to content

Commit 14bc2d0

Browse files
committed
Fix CI workflow
1 parent 65ccecb commit 14bc2d0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Tests CMakeLists.txt
22

3-
find_package(GTest CONFIG REQUIRED)
3+
find_package(GTest CONFIG QUIET)
44

55
if(NOT GTest_FOUND)
6-
include(FetchContent)
7-
FetchContent_Declare(
8-
googletest
9-
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
10-
)
11-
# For Windows: Prevent overriding the parent project's compiler/linker settings
12-
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
13-
FetchContent_MakeAvailable(googletest)
6+
include(FetchContent)
7+
FetchContent_Declare(
8+
googletest
9+
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
10+
)
11+
# For Windows: Prevent overriding the parent project's compiler/linker settings
12+
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
13+
FetchContent_MakeAvailable(googletest)
1414
endif()
1515

1616
# Include Google Test

0 commit comments

Comments
 (0)