BuildInfo struct
#include <gtopt/build_info.hpp>
Public functions
- auto version_string() const -> std::string
format_version_string(version, git_revision).
Public variables
- std::string_view build_tag
- std::string_view git_revision
- std::string_view version
Variable documentation
std::string_view gtopt:: BuildInfo:: build_tag
<git_revision>+<build-tree id>: identifies this build tree. Every solver plugin built alongside embeds the same tag (gtopt_plugin_build_tag), see SolverRegistry.
std::string_view gtopt:: BuildInfo:: git_revision
git describe --always --dirty of the source tree at build time, or "unknown" when built outside a git checkout.
std::string_view gtopt:: BuildInfo:: version
CMake project version plus GTOPT_VERSION_SUFFIX, e.g. "1.1.0" or "1.2.0-dev".