added fetch tags in create_revision.sh

This commit is contained in:
Pavel Kartavyy 2014-04-18 19:24:03 +04:00
parent 64ca649a27
commit 892cc08ece

View File

@ -8,6 +8,7 @@ cd ${CMAKE_CURRENT_SOURCE_DIR};
if (git rev-parse --is-inside-work-tree &> /dev/null)
then
# GIT
git fetch --tags;
( git describe --tags || echo 1 ) | cut -d "-" -f 1 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;
else
#SVN