Skip to content

Commit

Permalink
Update config.hpp.in
Browse files Browse the repository at this point in the history
  • Loading branch information
lefticus authored Apr 18, 2023
1 parent 5086a41 commit c655234
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions configured_files/config.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// this is a basic example of how a CMake configured file might look
// in this particular case, we are using it to set the version number of our executable
namespace myproject::cmake {
static constexpr std::string_view project_name = "@PROJECT_NAME@";
static constexpr std::string_view project_version = "@PROJECT_VERSION@";
static constexpr int project_version_major { @PROJECT_VERSION_MAJOR@ };
static constexpr int project_version_minor { @PROJECT_VERSION_MINOR@ };
static constexpr int project_version_patch { @PROJECT_VERSION_PATCH@ };
static constexpr int project_version_tweak { @PROJECT_VERSION_TWEAK@ };
static constexpr std::string_view git_sha = "@GIT_SHA@";
inline constexpr std::string_view project_name = "@PROJECT_NAME@";
inline constexpr std::string_view project_version = "@PROJECT_VERSION@";
inline constexpr int project_version_major { @PROJECT_VERSION_MAJOR@ };
inline constexpr int project_version_minor { @PROJECT_VERSION_MINOR@ };
inline constexpr int project_version_patch { @PROJECT_VERSION_PATCH@ };
inline constexpr int project_version_tweak { @PROJECT_VERSION_TWEAK@ };
inline constexpr std::string_view git_sha = "@GIT_SHA@";
}// namespace myproject::cmake

#endif

0 comments on commit c655234

Please sign in to comment.