File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11# Tests CMakeLists.txt
22
3- find_package (GTest CONFIG REQUIRED )
3+ find_package (GTest CONFIG QUIET )
44
55if (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)
1414endif ()
1515
1616# Include Google Test
You can’t perform that action at this time.
0 commit comments