Try avoid redefining LOC_REV.

--HG--
branch : develop
This commit is contained in:
dismine 2014-06-26 20:50:37 +03:00
parent 23a709e301
commit 186b427750
2 changed files with 5 additions and 7 deletions

View File

@ -551,14 +551,13 @@ CONFIG(debug, debug|release){
} }
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_DEBUG_OUTPUT
#local revision number for using in version #local revision number for using in version
!system(hg) { HG_REV=$$system(hg parents --template '{rev}')
DEFINES += "LOC_REV=0" isEmpty(HG_REV){
} HG_REV = 0
else
{
DEFINES += LOC_REV=$$system(hg parents --template '{rev}')
} }
DEFINES += "LOC_REV=$${HG_REV}"
} }
message(Qt version: $$[QT_VERSION]) message(Qt version: $$[QT_VERSION])

View File

@ -490,4 +490,3 @@ QMAKE_DISTCLEAN += \
$${DESTDIR}/* \ $${DESTDIR}/* \
$${OBJECTS_DIR}/* \ $${OBJECTS_DIR}/* \
$${MOC_DIR}/* $${MOC_DIR}/*