Browse Source

Merge remote-tracking branch 'upstream/master'

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
369319310a
  1. 4
      CMakeLists.txt
  2. 9
      src/storm/utility/storm-version.h
  3. 3
      storm-version.cpp.in

4
CMakeLists.txt

@ -400,10 +400,12 @@ else()
endif()
set(STORM_VERSION_DEV_STRING "")
set(STORM_VERSION_DEV "false")
if(STORM_VERSION_COMMITS_AHEAD)
MATH(EXPR STORM_VERSION_DEV_PATCH "${STORM_VERSION_PATCH}+1")
set(STORM_VERSION_DEV_STRING "(dev)")
set(STORM_VERSION_DEV_STRING " (dev)")
set(STORM_VERSION_DEV "true")
else()
set(STORM_VERSION_DEV_PATCH ${STORM_VERSION_PATCH})
endif()

9
src/storm/utility/storm-version.h

@ -18,6 +18,9 @@ namespace storm {
/// The patch version of Storm.
const static unsigned versionPatch;
/// Flag indicating if the version of Storm is a development version.
const static bool versionDev;
/// The short hash of the git commit this build is based on
const static std::string gitRevisionHash;
@ -42,12 +45,18 @@ namespace storm {
static std::string shortVersionString() {
std::stringstream sstream;
sstream << versionMajor << "." << versionMinor << "." << versionPatch;
if (versionDev) {
sstream << " (dev)";
}
return sstream.str();
}
static std::string longVersionString() {
std::stringstream sstream;
sstream << "Version " << versionMajor << "." << versionMinor << "." << versionPatch;
if (versionDev) {
sstream << " (dev)";
}
if (commitsAhead) {
sstream << " (+ " << commitsAhead << " commits)";
}

3
storm-version.cpp.in

@ -7,7 +7,8 @@ namespace storm {
const unsigned StormVersion::versionMajor = @STORM_VERSION_MAJOR@;
const unsigned StormVersion::versionMinor = @STORM_VERSION_MINOR@;
const unsigned StormVersion::versionPatch = @STORM_VERSION_PATCH@;
const unsigned StormVersion::versionPatch = @STORM_VERSION_DEV_PATCH@;
const bool StormVersion::versionDev = @STORM_VERSION_DEV@;
const std::string StormVersion::gitRevisionHash = "@STORM_VERSION_GIT_HASH@";
const unsigned StormVersion::commitsAhead = @STORM_VERSION_COMMITS_AHEAD@;
const boost::optional<bool> StormVersion::dirty = @STORM_VERSION_DIRTY@;

Loading…
Cancel
Save