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
#local revision number for using in version
!system(hg) {
DEFINES += "LOC_REV=0"
}
else
{
DEFINES += LOC_REV=$$system(hg parents --template '{rev}')
HG_REV=$$system(hg parents --template '{rev}')
isEmpty(HG_REV){
HG_REV = 0
}
DEFINES += "LOC_REV=$${HG_REV}"
}
message(Qt version: $$[QT_VERSION])

View file

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