-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build,refactor: improve cmake script composing (#1)
* build,refactor: improve cmake script composing * ci: install dependencies required for Ubuntu * chore: add .gitignore * feat: set fetch depth as 1 when libgit2 version no less than v1.7.0
- Loading branch information
1 parent
83fab3a
commit 92d47cc
Showing
5 changed files
with
83 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
|
||
#include <git2.h> | ||
|
||
#ifdef LIBGIT2_VER_MINOR | ||
# define CHECK_LIBGIT2_VERSION(MAJOR, MINOR) \ | ||
((LIBGIT2_VER_MAJOR == (MAJOR) && LIBGIT2_VER_MINOR >= (MINOR)) || \ | ||
LIBGIT2_VER_MAJOR > (MAJOR)) | ||
#else /* ! defined(LIBGIT2_VER_MINOR) */ | ||
# define CHECK_LIBGIT2_VERSION(MAJOR, MINOR) 0 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters