Use ARGN where applicable

This commit is contained in:
Ilya Fedin 2023-05-31 08:33:59 +04:00 committed by John Preston
parent 7cc191ba61
commit be89e57d27
2 changed files with 2 additions and 5 deletions

View File

@ -5,9 +5,6 @@
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
function(generate_midl target_name src_loc)
set(list ${ARGV})
list(REMOVE_AT list 0 1)
set(gen_dst ${CMAKE_CURRENT_BINARY_DIR}/gen)
file(MAKE_DIRECTORY ${gen_dst})
@ -21,7 +18,7 @@ function(generate_midl target_name src_loc)
set(gen_files "")
set(full_generation_sources "")
set(full_dependencies_list "")
foreach (file ${list})
foreach (file ${ARGN})
list(APPEND full_generation_sources ${src_loc}/${file})
get_filename_component(file_name ${file} NAME_WLE)
list(APPEND gen_files

2
cmake

@ -1 +1 @@
Subproject commit 32e1044c5198819dd470e3262275a9747dfd65de
Subproject commit 1c07a71d6fde4e71ca9f98d343d09d7503ef15d2