git2wrap

C++20 wrapper for libgit2
git clone git://git.dimitrijedobrota.com/git2wrap.git
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING

commit 44c4919b203c5f0ba0e349daf034c8f36b634b3b
parent 2d3abc24b0a0a10455e8ca23f949db8f64d814ae
author Dimitrije Dobrota < mail@dimitrijedobrota.com >
date Mon, 27 Jan 2025 20:44:02 +0100

Add libgit2 1.9 as a dependency

Diffstat:
M CMakeLists.txt | ++++++ --
M README.md | +

2 files changed, 7 insertions(+), 2 deletions(-)


diff --git a/ CMakeLists.txt b/ CMakeLists.txt

@@ -4,7 +4,7 @@ include(cmake/prelude.cmake)


project(
git2wrap
VERSION 0.2.0
VERSION 0.2.1
DESCRIPTION "C++ 20 wrapper for libgit2"
HOMEPAGE_URL "https://git.dimitrijedobrota.com/git2wrap.git"
LANGUAGES CXX

@@ -13,6 +13,10 @@ project(

include(cmake/project-is-top-level.cmake)
include(cmake/variables.cmake)

# ---- Declare dependencies ----

find_package(libgit2 1.9 CONFIG REQUIRED)

# ---- Declare library ----

add_library(

@@ -34,7 +38,7 @@ add_library(

)
add_library(git2wrap::git2wrap ALIAS git2wrap_git2wrap)

target_link_libraries(git2wrap_git2wrap PRIVATE git2)
target_link_libraries(git2wrap_git2wrap PUBLIC git2)

include(GenerateExportHeader)
generate_export_header(

diff --git a/ README.md b/ README.md

@@ -14,6 +14,7 @@ a long way until full coverage.


* CMake 3.14 or latter
* Compiler with C++20 support (tested: clang 18.1.8, gcc 14.2.1)
* [`libgit2 1.9`](https://github.com/libgit2/libgit2)


## Building and installing