4 Star 1 Fork 0

Gitee 极速下载/bareos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/bareos/bareos
克隆/下载
get_version.cmake 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2019-2025 Bareos GmbH & Co. KG
#
# This program is Free Software; you can redistribute it and/or modify it under
# the terms of version three of the GNU Affero General Public License as
# published by the Free Software Foundation and included in the file LICENSE.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cmake_minimum_required(VERSION 3.17...3.31)
if(NOT DEFINED VERSION_STRING)
set(CMAKE_MODULE_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake" "${CMAKE_CURRENT_LIST_DIR}/core/cmake"
"${CMAKE_CURRENT_LIST_DIR}/webui/cmake"
)
find_package(Git QUIET)
include(BareosVersionFromGit)
include(BareosVersion OPTIONAL RESULT_VARIABLE BareosVersionFile)
if(BareosVersionFile STREQUAL "NOTFOUND")
if(GIT_DESCRIBE_VERSION)
set(VERSION_STRING "${GIT_DESCRIBE_VERSION}")
else()
message(
FATAL_ERROR
"VERSION_STRING not set, BareosVersion.cmake not found and no version data from git available.\n"
"For more information why this happened and how to fix it, please see "
"https://docs.bareos.org/DeveloperGuide/AutomaticVersionGeneration.html#troubleshooting"
)
endif()
endif()
endif()
message(STATUS "${VERSION_STRING}")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/bareos.git
git@gitee.com:mirrors/bareos.git
mirrors
bareos
bareos
master

搜索帮助