Jpp 21.0.0-rc.1-88-g0130508c4
the software that should make you happy
Loading...
Searching...
No Matches
version-consumer/main.cc
Go to the documentation of this file.
1#include "km3net/version-consumer/version.h"
2
3#include <string>
4
5int main() {
6 const std::string version = version::consumer::getVersion();
7 const std::string describe = version::consumer::getGitDescribe();
8 const std::string commit = version::consumer::getGitCommit();
9 const bool dirty = version::consumer::getGitDirty();
10 const bool hasSource = version::consumer::hasVersionMetadata();
11
12 return version.empty() || describe.empty() || commit.empty() ||
13 (dirty && !hasSource)
14 ? 1
15 : 0;
16}
int main()