4 Star 1 Fork 1

Gitee 极速下载/Logging Framework for C - log4c

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/log4cplus/log4cplus
克隆/下载
Log4CPlusUtils.cmake 715 Bytes
一键复制 编辑 原始数据 按行查看 历史
#
# Utility macros for Log4Cplus project
#
# Get Log4cplus version macro
# first param - path to include folder, we will rip version from version.h
macro(log4cplus_get_version _include_PATH vmajor vminor vpatch)
file(STRINGS "${_include_PATH}/log4cplus/version.h" _log4cplus_VER_STRING_AUX REGEX ".*#define[ ]+LOG4CPLUS_VERSION[ ]+")
string(REGEX MATCHALL "[0-9]+" _log4clpus_VER_LIST "${_log4cplus_VER_STRING_AUX}")
list(LENGTH _log4clpus_VER_LIST _log4cplus_VER_LIST_LEN)
# we also count '4' from the name...
if(_log4cplus_VER_LIST_LEN EQUAL 5)
list(GET _log4clpus_VER_LIST 2 ${vmajor})
list(GET _log4clpus_VER_LIST 3 ${vminor})
list(GET _log4clpus_VER_LIST 4 ${vpatch})
endif()
endmacro()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/log4cplus.git
git@gitee.com:mirrors/log4cplus.git
mirrors
log4cplus
Logging Framework for C - log4c
master

搜索帮助