mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Meta: Rename a variable in the invoke_generator() utility
This isn't always a "version file".
This commit is contained in:
parent
f3e04085d8
commit
473f840142
Notes:
sideshowbarker
2024-07-17 04:32:07 +09:00
Author: https://github.com/trflynn89
Commit: 473f840142
Pull-request: https://github.com/SerenityOS/serenity/pull/24407
Issue: https://github.com/SerenityOS/serenity/issues/24401
Reviewed-by: https://github.com/nico ✅
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ function(remove_path_if_version_changed version version_file cache_path)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
function(invoke_generator name generator version_file header implementation)
|
||||
function(invoke_generator name generator primary_source header implementation)
|
||||
cmake_parse_arguments(invoke_generator "" "" "arguments;dependencies" ${ARGN})
|
||||
|
||||
add_custom_command(
|
||||
|
@ -190,7 +190,7 @@ function(invoke_generator name generator version_file header implementation)
|
|||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${implementation}.tmp" "${implementation}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E remove "${header}.tmp" "${implementation}.tmp"
|
||||
VERBATIM
|
||||
DEPENDS ${generator} ${invoke_generator_dependencies} "${version_file}"
|
||||
DEPENDS ${generator} ${invoke_generator_dependencies} "${primary_source}"
|
||||
)
|
||||
|
||||
add_custom_target("generate_${name}" DEPENDS "${header}" "${implementation}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue