File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ function(cable_add_buildinfo_library)
52
52
53
53
add_custom_command (
54
54
COMMENT "Updating ${name} :"
55
- OUTPUT ${source_file}
55
+ OUTPUT ${source_file} ${output_dir} /buildinfo.json
56
56
COMMAND ${CMAKE_COMMAND}
57
57
-DOUTPUT_DIR=${output_dir}
58
58
-DPROJECT_NAME=${_PROJECT_NAME}
@@ -67,6 +67,7 @@ function(cable_add_buildinfo_library)
67
67
DEPENDS
68
68
${cable_buildinfo_template_dir} /buildinfo.cmake
69
69
${cable_buildinfo_template_dir} /buildinfo.c.in
70
+ ${cable_buildinfo_template_dir} /buildinfo.json.in
70
71
${name} -git
71
72
${output_dir} /gitinfo.txt
72
73
)
Original file line number Diff line number Diff line change 1
1
{
2
- "name": "@PROJECT_NAME@",
3
- "version": "@PROJECT_VERSION@",
4
- "is_prerelease": @PROJECT_VERSION_IS_PRERELEASE@,
5
- "commit": "@GIT_COMMIT_HASH@",
6
- "branch": "@GIT_BRANCH@",
7
- "repo": "@GIT_ORIGIN_URL@",
8
- "system_name": "@SYSTEM_NAME@",
9
- "system_processor": "@SYSTEM_PROCESSOR@"
2
+ "name": "@PROJECT_NAME@",
3
+ "version": "@PROJECT_VERSION@",
4
+ "is_prerelease": @PROJECT_VERSION_IS_PRERELEASE@,
5
+ "commit": "@GIT_COMMIT_HASH@",
6
+ "branch": "@GIT_BRANCH@",
7
+ "repo": "@GIT_ORIGIN_URL@",
8
+ "system_name": "@SYSTEM_NAME@",
9
+ "system_processor": "@SYSTEM_PROCESSOR@"
10
10
}
You can’t perform that action at this time.
0 commit comments