Fix appdata changelog target name

This commit is contained in:
Ilya Fedin 2022-01-25 16:11:06 +04:00 committed by John Preston
parent e8568c6701
commit f8da59595a
1 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,9 @@ function(generate_appdata_changelog target_name changelog_path appdata_path)
find_package(Python3 REQUIRED)
set(gen_dst ${CMAKE_CURRENT_BINARY_DIR}/gen)
set(gen_timestamp ${gen_dst}/${target_name}_changelog.timestamp)
file(MAKE_DIRECTORY ${gen_dst})
set(gen_timestamp ${gen_dst}/${target_name}_appdata_changelog.timestamp)
set(gen_files ${appdata_path})
add_custom_command(
@ -30,5 +32,5 @@ function(generate_appdata_changelog target_name changelog_path appdata_path)
${changelog_path}
${appdata_path}
)
generate_target(${target_name} changelog ${gen_timestamp} "${gen_files}" ${gen_dst})
generate_target(${target_name} appdata_changelog ${gen_timestamp} "${gen_files}" ${gen_dst})
endfunction()