-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR sets the version for the initial 0.0.1 MrDocs release. To ensure the versions in header files are always consistent, version details like major, minor, patch, and build are dynamically populated during the build process from variables defined in the CMakeLists.txt file. Adjustments have been made to include paths to ensure the new dynamically generated Version.hpp file is correctly included during the building process and installed with other header files.
- Loading branch information
1 parent
866f727
commit 285ddcb
Showing
3 changed files
with
57 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// Copyright (c) 2023 Klemens D. Morgenstern | ||
// | ||
// Official repository: https://github.com/cppalliance/mrdocs | ||
// | ||
|
||
#ifndef MRDOCS_VERSION_HPP | ||
#define MRDOCS_VERSION_HPP | ||
|
||
#include <string_view> | ||
|
||
namespace clang { | ||
namespace mrdocs { | ||
|
||
constexpr std::string_view project_version = "@PROJECT_VERSION@"; | ||
constexpr std::size_t project_version_major = @PROJECT_VERSION_MAJOR@; | ||
constexpr std::size_t project_version_minor = @PROJECT_VERSION_MINOR@; | ||
constexpr std::size_t project_version_patch = @PROJECT_VERSION_PATCH@; | ||
constexpr std::string_view project_version_build = "@PROJECT_VERSION_BUILD@"; | ||
constexpr std::string_view project_name = "@PROJECT_NAME@"; | ||
constexpr std::string_view project_description = "@PROJECT_DESCRIPTION@"; | ||
|
||
} // mrdocs | ||
} // clang | ||
|
||
#endif |