CMake: New version system: YearMonth (YYYYmm)-revision.

This commit is contained in:
Martin Duquesnoy 2009-07-06 00:55:47 +02:00
parent 0acbad7289
commit 139b0e9203
2 changed files with 5 additions and 3 deletions

View File

@ -46,8 +46,9 @@ set(wmfs_src
# Set the executable from the wmfs_src
add_executable(wmfs ${wmfs_src})
# Set the version - NOT USED AT THE MOMENT
set(VERSION "0.1rc4 (On The Run)")
# Set the version - Get YEAR and MONTH (YYYYmm)
EXEC_PROGRAM("date '+%Y%m'" OUTPUT_VARIABLE YEAR_MONTH)
set(VERSION "WMFS-${YEAR_MONTH}")
# FLAGS
set(CFLAGS "-g -Wall -ansi")
@ -101,6 +102,7 @@ pkg_check_modules(wmfs_required
libconfuse
freetype2
xinerama
xrandr
xft)
# Generating man page

View File

@ -97,7 +97,7 @@ infobar_init(void)
barwin_refresh(infobar[sc].bar);
/* Default statustext is set here */
statustext = _strdup("WMFS-" WMFS_VERSION);
statustext = _strdup(WMFS_VERSION);
infobar_draw(sc);
}