mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
fix GIT_VER info in VS2010
This commit is contained in:
parent
e98849b482
commit
59bcbc79b3
@ -140,7 +140,7 @@ TessBaseAPI::~TessBaseAPI() {
|
||||
* Returns the version identifier as a static string. Do not delete.
|
||||
*/
|
||||
const char* TessBaseAPI::Version() {
|
||||
#if defined(DEBUG) && defined(GIT_REV)
|
||||
#if defined(GIT_REV) && (defined(DEBUG) || defined(_DEBUG))
|
||||
return GIT_REV;
|
||||
#else
|
||||
return TESSERACT_VERSION_STR;
|
||||
|
@ -1 +1 @@
|
||||
#define GIT_REV "3.03-rc1-159-g035b324"
|
||||
#define GIT_REV "3.04-rc1-69-gaec22a4"
|
||||
|
@ -1,2 +1,2 @@
|
||||
REM @echo off
|
||||
FOR /F "tokens=*" %%i IN ('call git describe --always') DO echo #define GIT_REV "%%i" > ..\port\vcsversion.h
|
||||
@echo off
|
||||
FOR /F "tokens=*" %%i IN ('call git describe --tags --always') DO echo #define GIT_REV "%%i" > ..\port\vcsversion.h
|
Loading…
Reference in New Issue
Block a user