File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ It's written responsibly to only trigger rebuilds if git metadata changes (e.g.
5
5
The core capability is baked into single self-contained
6
6
[ script] ( git_watcher.cmake ) .
7
7
8
+ ## Requirements
9
+ - CMake >= 3.2
10
+ - C Compiler (with C99 standard support)
11
+ - Git
12
+
8
13
## Quickstart via FetchContent
9
14
You can use CMake's ` FetchContent ` module to build the static library ` cmake_git_version_tracking ` :
10
15
```
Original file line number Diff line number Diff line change 15
15
#define GIT_VERSION_TRACKING_EXTERN_C_END
16
16
#endif
17
17
18
+ // Don't mangle the C function names if included in a CXX file.
18
19
GIT_VERSION_TRACKING_EXTERN_C_BEGIN
19
20
20
21
// / Is the metadata populated?
@@ -57,9 +58,9 @@ GIT_VERSION_TRACKING_EXTERN_C_END
57
58
58
59
#ifdef __cplusplus
59
60
60
- // / This is a utility extension for C++ units .
61
+ // / This is a utility extension for C++ projects .
61
62
// / It provides a "git" namespace that wraps the
62
- // / C methods in more ergonomic types.
63
+ // / C methods in more(?) ergonomic types.
63
64
// /
64
65
// / This is header-only in an effort to keep the
65
66
// / underlying static library C99 compliant.
You can’t perform that action at this time.
0 commit comments