Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
1f37c26d
Commit
1f37c26d
authored
May 05, 2018
by
Jaikrishnan Menon
Committed by
Robert Kimball
May 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Fix broken revision parsing code (#963)
parent
af946b7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
git_tags.cmake
cmake/Modules/git_tags.cmake
+9
-3
No files found.
cmake/Modules/git_tags.cmake
View file @
1f37c26d
...
...
@@ -19,7 +19,9 @@ function(NGRAPH_GET_CURRENT_HASH)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
rev-parse --verify HEAD
RESULT_VARIABLE result
OUTPUT_VARIABLE HASH
)
OUTPUT_VARIABLE HASH
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
string
(
STRIP
${
HASH
}
HASH
)
set
(
NGRAPH_CURRENT_HASH
${
HASH
}
PARENT_SCOPE
)
endfunction
()
...
...
@@ -29,7 +31,9 @@ function(NGRAPH_GET_TAG_OF_CURRENT_HASH)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
ls-remote --tags
RESULT_VARIABLE RESULT
OUTPUT_VARIABLE TAG_LIST
)
OUTPUT_VARIABLE TAG_LIST
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
NGRAPH_GET_CURRENT_HASH
()
string
(
REGEX MATCH
"
${
NGRAPH_CURRENT_HASH
}
\t
[^
\r\n
]*"
TAG
${
TAG_LIST
}
)
...
...
@@ -45,7 +49,9 @@ function(NGRAPH_GET_MOST_RECENT_TAG)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
describe --tags --abbrev=0
RESULT_VARIABLE RESULT
OUTPUT_VARIABLE TAG
)
OUTPUT_VARIABLE TAG
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
string
(
STRIP
${
TAG
}
TAG
)
set
(
NGRAPH_MOST_RECENT_RELEASE_TAG
${
TAG
}
PARENT_SCOPE
)
endfunction
()
...
...
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