Unverified Commit e7f7886e authored by raramer01's avatar raramer01 Committed by GitHub

Becky/dldt custom build (#4383)

* set NGRAPH_TAG when no TAG file present

* use default build version with custom-build tag
Co-authored-by: 's avatarSang Ik Lee <sang.ik.lee@intel.com>
parent da10c2c4
......@@ -88,9 +88,14 @@ function(NGRAPH_GET_VERSION_LABEL)
set(NGRAPH_VERSION_LABEL "v0.0.0+${HASH}" PARENT_SCOPE)
else()
# Not in a git repo
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/TAG)
# TAG file exists and TAG is assumed to be in the 'correct format', i.e. *.*.*
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/TAG NGRAPH_TAG)
string(STRIP ${NGRAPH_TAG} NGRAPH_TAG)
set(NGRAPH_VERSION_LABEL "${NGRAPH_TAG}" PARENT_SCOPE)
else()
set(NGRAPH_VERSION_LABEL "v0.0.0+custom-build" PARENT_SCOPE)
endif()
endif()
endif()
endif()
......
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