Commit abef02e3 authored by Brad King's avatar Brad King

Wrapping: De-duplicate vtk_wrap_hierarchy argument file name

Use a variable to hold the name of the arguments file.
parent 740809c4
Pipeline #2718 passed with stage
......@@ -28,9 +28,10 @@ macro(VTK_WRAP_HIERARCHY module_name OUTPUT_DIR SOURCES)
endforeach()
# write wrapper-tool arguments to a file
set(_args_file ${module_name}Hierarchy.args)
string(STRIP "${_common_args}" CMAKE_CONFIGURABLE_FILE_CONTENT)
configure_file(${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in
${module_name}Hierarchy.args @ONLY)
${_args_file} @ONLY)
# list of all files to wrap
set(VTK_WRAPPER_INIT_DATA)
......@@ -135,13 +136,13 @@ macro(VTK_WRAP_HIERARCHY module_name OUTPUT_DIR SOURCES)
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${module_name}Hierarchy.stamp.txt
${help_ninja}
COMMAND ${VTK_WRAP_HIERARCHY_EXE}
@${module_name}Hierarchy.args -o ${OUTPUT_DIR}/${module_name}Hierarchy.txt
@${_args_file} -o ${OUTPUT_DIR}/${module_name}Hierarchy.txt
${module_name}Hierarchy.data
${OTHER_HIERARCHY_FILES}
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/${module_name}Hierarchy.stamp.txt
COMMENT "For ${module_name} - updating ${module_name}Hierarchy.txt"
DEPENDS ${VTK_WRAP_HIERARCHY_EXE}
${CMAKE_CURRENT_BINARY_DIR}/${module_name}Hierarchy.args
${CMAKE_CURRENT_BINARY_DIR}/${_args_file}
${CMAKE_CURRENT_BINARY_DIR}/${module_name}Hierarchy.data
${OTHER_HIERARCHY_FILES}
${INPUT_FILES}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment