mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #6839 from thymusvulgaris/examples-build-documentation
docs: Add instructions to build examples
This commit is contained in:
@@ -224,6 +224,10 @@ On most systems you can build the library using the following commands
|
||||
$ cmake ..
|
||||
$ cmake --build .
|
||||
|
||||
To include the examples in the build, use `cmake -DBUILD_EXAMPLES=True ..` instead of `cmake ..`.
|
||||
|
||||
The built executable for the examples can then be found in `build/examples`, relative to the toplevel directory.
|
||||
|
||||
Alternatively you can point the CMake GUI tool to the CMakeLists.txt file and generate platform specific build project or IDE workspace.
|
||||
|
||||
If you're not familiar with CMake, [a more detailed explanation](https://preshing.com/20170511/how-to-build-a-cmake-based-project/) may be helpful.
|
||||
|
||||
Reference in New Issue
Block a user