also added build date to output of pingcheck --version
# project: definitions
project(pingcheck)
set(VERSION 0.3)
+set(VERSION_REVISION 1)
set(TARGET ${PROJECT_NAME})
# cmake: build options
#-O2
-DVERSION_STRING=${VERSION}
-DPROJECT_NAME=\"${PROJECT_NAME}\"
+ -DVERSION_REVISION_STRING=${VERSION}
)
# package: package information
if ( configuration->get_print_version() ) // do this even if parsing of config failed
{
GlobalLogger.debug() << "Printing version info (" << VERSION_STRING << ") and exit" << endl;
- cout << PROJECT_NAME << " version " << VERSION_STRING << endl;
+ cout << PROJECT_NAME << " version " << VERSION_STRING << "."
+ << VERSION_REVISION_STRING << " build " << __DATE__ << endl;
return 0;
}