Skip to content

Commit

Permalink
Meta: Rename a variable in the invoke_generator() utility
Browse files Browse the repository at this point in the history
This isn't always a "version file".
  • Loading branch information
trflynn89 committed May 24, 2024
1 parent f3e0408 commit 473f840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Meta/CMake/utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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}")
Expand Down

0 comments on commit 473f840

Please sign in to comment.