代码拉取完成,页面将自动刷新
function(kmpkg_replace_string filename match replace)
cmake_parse_arguments(PARSE_ARGV 3 "arg" "REGEX;IGNORE_UNCHANGED" "" "")
if(arg_REGEX)
set(arg_REGEX "REGEX")
else()
if("${match}" STREQUAL "${replace}")
return() # Avoid reading the file or triggering warnings
endif()
set(arg_REGEX "")
endif ()
file(READ "${filename}" contents)
string(SHA512 before_hash "${contents}")
string(${arg_REGEX} REPLACE "${match}" "${replace}" contents "${contents}")
string(SHA512 after_hash "${contents}")
if(NOT arg_IGNORE_UNCHANGED AND "${before_hash}" STREQUAL "${after_hash}")
message("${Z_KMPKG_BACKCOMPAT_MESSAGE_LEVEL}" "kmpkg_replace_string made no changes.")
endif()
file(WRITE "${filename}" "${contents}")
endfunction()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。