mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
fix showing git tag for cmake build
This commit is contained in:
parent
a2481de926
commit
441779de51
@ -50,7 +50,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
|
||||
OUTPUT_VARIABLE GIT_REV)
|
||||
string(REGEX REPLACE "\n$" "" PACKAGE_VERSION "${GIT_REV}")
|
||||
endif()
|
||||
if(NOT EXISTS ${PACKAGE_VERSION})
|
||||
if(NOT PACKAGE_VERSION)
|
||||
set(PACKAGE_VERSION ${VERSION_PLAIN})
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user