Commit a64c54c5 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Fix check to enable Xdmf3/Adios XMLs.

Existing code wasn't handling the case when modules were enabled through
dependencies and not explicitly. Fixed that.
parent 672010e3
......@@ -129,15 +129,14 @@ else()
endif()
#------------------------------------------------------------------------------
# These checks are wrong. Module_vtk* flags are set to true only when the module
# is explictly enabled, not when the module was enabled due to a dependency. I
# am leaving that as is for now since I am only splitting the files up. We need
# to revisit.
if (Module_vtkIOXdmf3)
list(FIND VTK_MODULES_ENABLED "vtkIOXdmf3" vtkioxdmf3_index)
if (vtkioxdmf3_index GREATER 0)
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_xdmf3.xml)
endif()
if (Module_vtkIOADIOS)
list(FIND VTK_MODULES_ENABLED "vtkIOADIOS" vtkioadios_index)
if (vtkioadios_index GREATER 0)
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_adios.xml)
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