diff --git a/Telegram/cmake/generate_appdata_changelog.cmake b/Telegram/cmake/generate_appdata_changelog.cmake index 90be486038..1494d10d14 100644 --- a/Telegram/cmake/generate_appdata_changelog.cmake +++ b/Telegram/cmake/generate_appdata_changelog.cmake @@ -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()