mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +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)
|
OUTPUT_VARIABLE GIT_REV)
|
||||||
string(REGEX REPLACE "\n$" "" PACKAGE_VERSION "${GIT_REV}")
|
string(REGEX REPLACE "\n$" "" PACKAGE_VERSION "${GIT_REV}")
|
||||||
endif()
|
endif()
|
||||||
if(NOT EXISTS ${PACKAGE_VERSION})
|
if(NOT PACKAGE_VERSION)
|
||||||
set(PACKAGE_VERSION ${VERSION_PLAIN})
|
set(PACKAGE_VERSION ${VERSION_PLAIN})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user