File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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
66namespace 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
You can’t perform that action at this time.
0 commit comments