Skip to content

Commit

Permalink
include git version in build date string
Browse files Browse the repository at this point in the history
  • Loading branch information
fferri committed Jul 27, 2018
1 parent 09313d2 commit aa8e90d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#define CONFIG_H_INCLUDED

#cmakedefine BUILD_GIT_VERSION "${BUILD_GIT_VERSION}"
#define BUILD_DATE __DATE__ " (git " BUILD_GIT_VERSION ")"

#endif // CONFIG_H_INCLUDED
2 changes: 1 addition & 1 deletion plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Plugin : public vrep::Plugin
throw std::runtime_error("script stuff initialization failed");

simSetModuleInfo(PLUGIN_NAME, 0, "Example Plugin Skeleton", 0);
simSetModuleInfo(PLUGIN_NAME, 1, __DATE__, 0);
simSetModuleInfo(PLUGIN_NAME, 1, BUILD_DATE, 0);
}
};

Expand Down
2 changes: 2 additions & 0 deletions plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#ifndef VREP_EXT_PLUGIN_SKELETON_NG_H_INCLUDED
#define VREP_EXT_PLUGIN_SKELETON_NG_H_INCLUDED

#include "config.h"

#define PLUGIN_NAME "PluginSkeletonNG"
#define PLUGIN_VERSION 1

Expand Down

0 comments on commit aa8e90d

Please sign in to comment.