buildinfo: Mark buildinfo.json as GENERATED file

This commit is contained in:
Paweł Bylica 2018-08-08 11:16:01 +02:00
parent e62eaa7ea5
commit 259d7ac174
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with 10 additions and 9 deletions

View File

@ -52,7 +52,7 @@ function(cable_add_buildinfo_library)
add_custom_command( add_custom_command(
COMMENT "Updating ${name}:" COMMENT "Updating ${name}:"
OUTPUT ${source_file} OUTPUT ${source_file} ${output_dir}/buildinfo.json
COMMAND ${CMAKE_COMMAND} COMMAND ${CMAKE_COMMAND}
-DOUTPUT_DIR=${output_dir} -DOUTPUT_DIR=${output_dir}
-DPROJECT_NAME=${_PROJECT_NAME} -DPROJECT_NAME=${_PROJECT_NAME}
@ -67,6 +67,7 @@ function(cable_add_buildinfo_library)
DEPENDS DEPENDS
${cable_buildinfo_template_dir}/buildinfo.cmake ${cable_buildinfo_template_dir}/buildinfo.cmake
${cable_buildinfo_template_dir}/buildinfo.c.in ${cable_buildinfo_template_dir}/buildinfo.c.in
${cable_buildinfo_template_dir}/buildinfo.json.in
${name}-git ${name}-git
${output_dir}/gitinfo.txt ${output_dir}/gitinfo.txt
) )