Skip to content

Commit

Permalink
Tie builtin plugin version to the project version
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisklein committed Sep 20, 2018
1 parent 957233c commit 94297f9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions fairmq/plugins/Control.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define FAIR_MQ_PLUGINS_CONTROL

#include <fairmq/Plugin.h>
#include <fairmq/Version.h>

#include <condition_variable>
#include <mutex>
Expand Down Expand Up @@ -57,13 +58,16 @@ class Control : public Plugin
auto ControlPluginProgramOptions() -> Plugin::ProgOptions;

REGISTER_FAIRMQ_PLUGIN(
Control, // Class name
control, // Plugin name (string, lower case chars only)
(Plugin::Version{1,0,1}), // Version
"FairRootGroup <fairroot@gsi.de>", // Maintainer
"https://github.com/FairRootGroup/FairRoot", // Homepage
ControlPluginProgramOptions // Free function which declares custom program options for the plugin
// signature: () -> boost::optional<boost::program_options::options_description>
Control, // Class name
control, // Plugin name (string, lower case chars only)
(Plugin::Version{FAIRMQ_VERSION_MAJOR,
FAIRMQ_VERSION_MINOR,
FAIRMQ_VERSION_PATCH}), // Version
"FairRootGroup <fairroot@gsi.de>", // Maintainer
"https://github.com/FairRootGroup/FairRoot", // Homepage
ControlPluginProgramOptions // Free function which declares custom program options for the
// plugin signature: () ->
// boost::optional<boost::program_options::options_description>
)

} /* namespace plugins */
Expand Down

0 comments on commit 94297f9

Please sign in to comment.