mirror of https://github.com/status-im/evmc.git
buildinfo: Mark buildinfo.json as GENERATED file
This commit is contained in:
parent
e62eaa7ea5
commit
259d7ac174
|
@ -52,7 +52,7 @@ function(cable_add_buildinfo_library)
|
|||
|
||||
add_custom_command(
|
||||
COMMENT "Updating ${name}:"
|
||||
OUTPUT ${source_file}
|
||||
OUTPUT ${source_file} ${output_dir}/buildinfo.json
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-DOUTPUT_DIR=${output_dir}
|
||||
-DPROJECT_NAME=${_PROJECT_NAME}
|
||||
|
@ -67,6 +67,7 @@ function(cable_add_buildinfo_library)
|
|||
DEPENDS
|
||||
${cable_buildinfo_template_dir}/buildinfo.cmake
|
||||
${cable_buildinfo_template_dir}/buildinfo.c.in
|
||||
${cable_buildinfo_template_dir}/buildinfo.json.in
|
||||
${name}-git
|
||||
${output_dir}/gitinfo.txt
|
||||
)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "@PROJECT_NAME@",
|
||||
"version": "@PROJECT_VERSION@",
|
||||
"is_prerelease": @PROJECT_VERSION_IS_PRERELEASE@,
|
||||
"commit": "@GIT_COMMIT_HASH@",
|
||||
"branch": "@GIT_BRANCH@",
|
||||
"repo": "@GIT_ORIGIN_URL@",
|
||||
"system_name": "@SYSTEM_NAME@",
|
||||
"system_processor": "@SYSTEM_PROCESSOR@"
|
||||
"name": "@PROJECT_NAME@",
|
||||
"version": "@PROJECT_VERSION@",
|
||||
"is_prerelease": @PROJECT_VERSION_IS_PRERELEASE@,
|
||||
"commit": "@GIT_COMMIT_HASH@",
|
||||
"branch": "@GIT_BRANCH@",
|
||||
"repo": "@GIT_ORIGIN_URL@",
|
||||
"system_name": "@SYSTEM_NAME@",
|
||||
"system_processor": "@SYSTEM_PROCESSOR@"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue