Skip to content

Commit

Permalink
vtkWrapHierarchy: declare that the hierarchy file is an output
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf committed Dec 13, 2017
1 parent 52e2867 commit de1e3d3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions CMake/vtkWrapHierarchy.cmake
Expand Up @@ -127,18 +127,10 @@ $<$<BOOL:$<TARGET_PROPERTY:${module_name},INCLUDE_DIRECTORIES>>:
configure_file(${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in
${_other_hierarchy_args_file} @ONLY)

# Ninja does not wait for order-only dependencies before enforcing the
# existence of explicit dependencies that those order-only dependencies
# might have produced. Specify the real output to help it out.
if(CMAKE_GENERATOR MATCHES "Ninja")
set(help_ninja ${OUTPUT_DIR}/${module_name}Hierarchy.txt)
else()
set(help_ninja "")
endif()

add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${module_name}Hierarchy.stamp.txt
${help_ninja}
"${OUTPUT_DIR}/${module_name}Hierarchy.txt"
COMMAND ${VTK_WRAP_HIERARCHY_EXE}
@${_args_file} -o ${OUTPUT_DIR}/${module_name}Hierarchy.txt
${module_name}Hierarchy.data
Expand Down

0 comments on commit de1e3d3

Please sign in to comment.