Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
47fae920
Commit
47fae920
authored
Jun 08, 2014
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cmn/soversion' into development
parents
ce5e6617
4fb32a44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
CMakeLists.txt
+4
-1
include/git2/version.h
+4
-2
No files found.
CMakeLists.txt
View file @
47fae920
...
@@ -127,6 +127,9 @@ STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" LIBGIT2_V
...
@@ -127,6 +127,9 @@ STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" LIBGIT2_V
STRING
(
REGEX REPLACE
"^.*LIBGIT2_VERSION
\"
[0-9]+
\\
.[0-9]+
\\
.([0-9]+).*$"
"
\\
1"
LIBGIT2_VERSION_REV
"
${
GIT2_HEADER
}
"
)
STRING
(
REGEX REPLACE
"^.*LIBGIT2_VERSION
\"
[0-9]+
\\
.[0-9]+
\\
.([0-9]+).*$"
"
\\
1"
LIBGIT2_VERSION_REV
"
${
GIT2_HEADER
}
"
)
SET
(
LIBGIT2_VERSION_STRING
"
${
LIBGIT2_VERSION_MAJOR
}
.
${
LIBGIT2_VERSION_MINOR
}
.
${
LIBGIT2_VERSION_REV
}
"
)
SET
(
LIBGIT2_VERSION_STRING
"
${
LIBGIT2_VERSION_MAJOR
}
.
${
LIBGIT2_VERSION_MINOR
}
.
${
LIBGIT2_VERSION_REV
}
"
)
FILE
(
STRINGS
"include/git2/version.h"
GIT2_HEADER_SOVERSION REGEX
"^#define LIBGIT2_SOVERSION [0-9]+$"
)
STRING
(
REGEX REPLACE
"^.*LIBGIT2_SOVERSION ([0-9]+)$"
"
\\
1"
LIBGIT2_SOVERSION
"
${
GIT2_HEADER_SOVERSION
}
"
)
# Find required dependencies
# Find required dependencies
INCLUDE_DIRECTORIES
(
src include
)
INCLUDE_DIRECTORIES
(
src include
)
...
@@ -397,7 +400,7 @@ MSVC_SPLIT_SOURCES(git2)
...
@@ -397,7 +400,7 @@ MSVC_SPLIT_SOURCES(git2)
IF
(
SONAME
)
IF
(
SONAME
)
SET_TARGET_PROPERTIES
(
git2 PROPERTIES VERSION
${
LIBGIT2_VERSION_STRING
}
)
SET_TARGET_PROPERTIES
(
git2 PROPERTIES VERSION
${
LIBGIT2_VERSION_STRING
}
)
SET_TARGET_PROPERTIES
(
git2 PROPERTIES SOVERSION
${
LIBGIT2_
VERSION_MAJOR
}
)
SET_TARGET_PROPERTIES
(
git2 PROPERTIES SOVERSION
${
LIBGIT2_
SOVERSION
}
)
IF
(
LIBGIT2_FILENAME
)
IF
(
LIBGIT2_FILENAME
)
ADD_DEFINITIONS
(
-DLIBGIT2_FILENAME=\
"
${
LIBGIT2_FILENAME
}
\"
)
ADD_DEFINITIONS
(
-DLIBGIT2_FILENAME=\
"
${
LIBGIT2_FILENAME
}
\"
)
SET_TARGET_PROPERTIES(git2 PROPERTIES OUTPUT_NAME
${
LIBGIT2_FILENAME
}
)
SET_TARGET_PROPERTIES(git2 PROPERTIES OUTPUT_NAME
${
LIBGIT2_FILENAME
}
)
...
...
include/git2/version.h
View file @
47fae920
...
@@ -7,9 +7,11 @@
...
@@ -7,9 +7,11 @@
#ifndef INCLUDE_git_version_h__
#ifndef INCLUDE_git_version_h__
#define INCLUDE_git_version_h__
#define INCLUDE_git_version_h__
#define LIBGIT2_VERSION "0.2
0
.0"
#define LIBGIT2_VERSION "0.2
1
.0"
#define LIBGIT2_VER_MAJOR 0
#define LIBGIT2_VER_MAJOR 0
#define LIBGIT2_VER_MINOR 2
0
#define LIBGIT2_VER_MINOR 2
1
#define LIBGIT2_VER_REVISION 0
#define LIBGIT2_VER_REVISION 0
#define LIBGIT2_SOVERSION 21
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment