fix GIT_VER info in VS2010

This commit is contained in:
Zdenko Podobný 2015-05-15 15:14:49 +02:00
parent e98849b482
commit 59bcbc79b3
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -1 +1 @@
#define GIT_REV "3.03-rc1-159-g035b324"
#define GIT_REV "3.04-rc1-69-gaec22a4"

View File

@ -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