Commit 0a8d82b
committed
Modernize GoogleTest fetch (FetchContent v1.16.0), version 1.1.6
The legacy pre-FetchContent GoogleTest download mechanism
(configure_file test/CMakeLists.txt.in + execute_process git clone)
pinned googletest at an old release whose inner subdirectories use
`cmake_minimum_required(VERSION ...)` below the floor CMake 4 still
supports. Configures with CMake 4 now error out with:
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value.
Fix: replace the legacy mechanism with `FetchContent_Declare` pinned at
googletest v1.16.0. Delete test/CMakeLists.txt.in entirely.
Also wires googletest into the standard preset pattern:
- Root CMakeLists.txt: GOOGLETEST added to the graceful-fallback foreach
alongside XMLPARSER, so a missing sibling silently falls back to
remote.
- CMakePresets.json: `local` base now also overrides
FETCHCONTENT_SOURCE_DIR_GOOGLETEST to ${sourceDir}/../googletest.
README updated: removed the stale note about GoogleTest using a legacy
non-overridable mechanism; sibling table now includes the googletest
override.
Project VERSION: 1.1.5 -> 1.1.6.1 parent f89b91a commit 0a8d82b
5 files changed
Lines changed: 26 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
30 | 20 | | |
31 | 21 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
36 | 26 | | |
37 | 27 | | |
38 | 28 | | |
| |||
42 | 32 | | |
43 | 33 | | |
44 | 34 | | |
45 | | - | |
This file was deleted.
0 commit comments