Skip to content

Commit

Permalink
fix GIT_VER info in VS2010
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed May 15, 2015
1 parent e98849b commit 59bcbc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion vs2010/port/vcsversion.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define GIT_REV "3.03-rc1-159-g035b324"
#define GIT_REV "3.04-rc1-69-gaec22a4"
4 changes: 2 additions & 2 deletions vs2010/version.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 59bcbc7

Please sign in to comment.