Skip to content

Commit 432dfda

Browse files
committed
README.md: detail how to list all build options
We do not list all build options inside of the README.md, and we definitly shouldn't do so. But in order to help people discover what can be configured, add instructions on how to have CMake generate the list of all knobs together with their current value.
1 parent faf2629 commit 432dfda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ The following CMake variables are declared:
254254
- `THREADSAFE`: Build libgit2 with threading support (defaults to ON)
255255
- `STDCALL`: Build libgit2 as `stdcall`. Turn off for `cdecl` (Windows; defaults to ON)
256256

257+
To list all build options and their current value, you can do the
258+
following:
259+
260+
# Create and set up a build directory
261+
$ mkdir build
262+
$ cmake ..
263+
# List all build options and their values
264+
$ cmake -L
265+
257266
Compiler and linker options
258267
---------------------------
259268

0 commit comments

Comments
 (0)