Skip to content

Commit c655234

Browse files
authored
Update config.hpp.in
1 parent 5086a41 commit c655234

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

configured_files/config.hpp.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
// this is a basic example of how a CMake configured file might look
55
// in this particular case, we are using it to set the version number of our executable
66
namespace myproject::cmake {
7-
static constexpr std::string_view project_name = "@PROJECT_NAME@";
8-
static constexpr std::string_view project_version = "@PROJECT_VERSION@";
9-
static constexpr int project_version_major { @PROJECT_VERSION_MAJOR@ };
10-
static constexpr int project_version_minor { @PROJECT_VERSION_MINOR@ };
11-
static constexpr int project_version_patch { @PROJECT_VERSION_PATCH@ };
12-
static constexpr int project_version_tweak { @PROJECT_VERSION_TWEAK@ };
13-
static constexpr std::string_view git_sha = "@GIT_SHA@";
7+
inline constexpr std::string_view project_name = "@PROJECT_NAME@";
8+
inline constexpr std::string_view project_version = "@PROJECT_VERSION@";
9+
inline constexpr int project_version_major { @PROJECT_VERSION_MAJOR@ };
10+
inline constexpr int project_version_minor { @PROJECT_VERSION_MINOR@ };
11+
inline constexpr int project_version_patch { @PROJECT_VERSION_PATCH@ };
12+
inline constexpr int project_version_tweak { @PROJECT_VERSION_TWEAK@ };
13+
inline constexpr std::string_view git_sha = "@GIT_SHA@";
1414
}// namespace myproject::cmake
1515

1616
#endif

0 commit comments

Comments
 (0)