Commit eaf936c1 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'support-hierarchy-independent-of-langs'

375a2d3a

 wrapping: support creating hierarchy files independently
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: David Gobbi's avatarDavid Gobbi <david.gobbi@gmail.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !3642
parents cceb1b89 375a2d3a
......@@ -166,5 +166,8 @@ $<$<BOOL:$<TARGET_PROPERTY:${module_name},INCLUDE_DIRECTORIES>>:
${INPUT_FILES}
VERBATIM
)
add_custom_target(${module_name}Hierarchy
DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/${module_name}Hierarchy.stamp.txt)
endmacro()
......@@ -20,7 +20,7 @@ include(vtkWrapHierarchy)
function(vtk_add_wrapping module_name module_srcs module_hdrs)
if(NOT ${module_name}_EXCLUDE_FROM_WRAPPING)
set(_wrap_module FALSE)
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA)
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA OR VTK_WRAP_HIERARCHY)
set(_wrap_module TRUE)
endif()
......
......@@ -493,7 +493,9 @@ else()
FORCE)
endif()
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA)
option(VTK_WRAP_HIERARCHY "Create wrap hierarchy even if languages are disabled." OFF)
mark_as_advanced(VTK_WRAP_HIERARCHY)
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL OR VTK_WRAP_JAVA OR VTK_WRAP_HIERARCHY)
set(VTK_WRAP_HIERARCHY_EXE vtkWrapHierarchy)
endif()
......
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