updated build system
This commit is contained in:
@ -403,11 +403,6 @@ using FileInfo = FSP_FSCTL_FILE_INFO;
|
||||
|
||||
using namespace Fsp;
|
||||
|
||||
namespace repertory {
|
||||
auto get_repertory_git_revision() -> const std::string &;
|
||||
auto get_repertory_version() -> const std::string &;
|
||||
} // namespace repertory
|
||||
|
||||
namespace {
|
||||
template <class... Ts> struct overloaded : Ts... {
|
||||
using Ts::operator()...;
|
||||
|
@ -19,17 +19,13 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#include "types/repertory.hpp"
|
||||
#include "utils/utils.hpp"
|
||||
#ifndef LIBREPERTORY_INCLUDE_VERSION_HPP_
|
||||
#define LIBREPERTORY_INCLUDE_VERSION_HPP_
|
||||
|
||||
namespace repertory {
|
||||
auto get_repertory_git_revision() -> const std::string & {
|
||||
static const std::string git_revision = PROJECT_GIT_REV;
|
||||
return git_revision;
|
||||
}
|
||||
[[nodiscard]] auto project_get_git_rev() -> std::string_view;
|
||||
|
||||
auto get_repertory_version() -> const std::string & {
|
||||
static const std::string version = PROJECT_VERSION;
|
||||
return version;
|
||||
}
|
||||
[[nodiscard]] auto project_get_version() -> std::string_view;
|
||||
} // namespace repertory
|
||||
|
||||
#endif // LIBREPERTORY_INCLUDE_VERSION_HPP_
|
Reference in New Issue
Block a user