cmake introduction
A short example project for the CMake build system
configure_time_constants Namespace Reference

Namespace for configuration time constants. More...

Variables

information on the repository version and the build system

here some information from configure time (during a cmake run) is made available during compile and run time.

Warning
this is updated only during configure time, i.e. when cmake is called. So these entries here can be quite out of date, don't rely on them to be correct. You can touch the file config.h.in in the directory include to invoke a rerun of cmake during a call to make and update this file.
constexpr const char * git_revision = "5aead1bf5c1d9181cd2c52a1103b98387e34f77b"
 Git revision id. More...
 
constexpr const char * git_shortrev = "5aead1b"
 CurrentGit shortrev. More...
 
constexpr const char * git_branch = ""
 Current Git branch. More...
 
constexpr const char * build_type = "Debug"
 Current build type. More...
 

Detailed Description

Namespace for configuration time constants.

The constants are automatically defined by CMake in the configuration process.

Variable Documentation

◆ build_type

constexpr const char* configure_time_constants::build_type = "Debug"

Current build type.

Definition at line 35 of file config.h.

◆ git_branch

constexpr const char* configure_time_constants::git_branch = ""

Current Git branch.

Definition at line 33 of file config.h.

◆ git_revision

constexpr const char* configure_time_constants::git_revision = "5aead1bf5c1d9181cd2c52a1103b98387e34f77b"

Git revision id.

Definition at line 31 of file config.h.

◆ git_shortrev

constexpr const char* configure_time_constants::git_shortrev = "5aead1b"

CurrentGit shortrev.

Definition at line 32 of file config.h.