提交 ea03b143 编写于 作者: M MRXLT

fix compile

上级 bc07bb21
...@@ -6,7 +6,7 @@ include(framework/CMakeLists.txt) ...@@ -6,7 +6,7 @@ include(framework/CMakeLists.txt)
include(tools/CMakeLists.txt) include(tools/CMakeLists.txt)
include(src/CMakeLists.txt) include(src/CMakeLists.txt)
add_definitions(-D__STDC_FORMAT_MACROS)
add_library(pdserving ${pdserving_srcs}) add_library(pdserving ${pdserving_srcs})
set_source_files_properties( set_source_files_properties(
${pdserving_srcs} ${pdserving_srcs}
......
...@@ -23,7 +23,7 @@ def update_info(file_name, feature, info): ...@@ -23,7 +23,7 @@ def update_info(file_name, feature, info):
with open(file_name, "r") as f: with open(file_name, "r") as f:
for line in f.readlines(): for line in f.readlines():
if re.match(feature, line): if re.match(feature, line):
line = feature + " = \"" + info.strip().decode("utf-8") + "\"\n" line = feature + " = \"" + info.decode('utf-8').strip() + "\"\n"
new_str = new_str + line new_str = new_str + line
with open(file_name, "w") as f: with open(file_name, "w") as f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册