diff --git a/configured_files/config.hpp.in b/configured_files/config.hpp.in index 4e188065..86d5cb38 100644 --- a/configured_files/config.hpp.in +++ b/configured_files/config.hpp.in @@ -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