Commit c1220108 authored by Adam Procter's avatar Adam Procter Committed by Michał Karzyński

Fix version number parsing when latest branch is not vxx.yy.zz (#3300)

parent 1eda1350
......@@ -53,7 +53,7 @@ endfunction()
function(NGRAPH_GET_MOST_RECENT_TAG)
find_package(Git REQUIRED)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=0
COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=0 --match v*.*.*
RESULT_VARIABLE RESULT
OUTPUT_VARIABLE TAG
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment