Add status messages when using find_package(VTKm)

When finding the VTKm package, it is important to load components that
support the devices you want to use. However, there is no indication of
what does and does not get loaded. In some circumstances, it simply says
that VTKm_FOUND is not true but not why. Add some status messages of
whether each component gets loaded or not.
This commit is contained in:
Kenneth Moreland 2016-06-30 15:25:26 -06:00
parent 94c5b29fdf
commit f90b42ac84

@ -246,11 +246,22 @@ foreach(component ${VTKm_AVAILABLE_COMPONENTS})
set(VTKm_LOAD_COMPONENTS_COMMANDS "${VTKm_LOAD_COMPONENTS_COMMANDS}
if(\"${component}\" STREQUAL \${comp})
vtkm_configure_component_${component}()
if(VTKm_${component}_FOUND)
message(STATUS \"Successfully loaded VTK-m component ${component}\")
else()
if(VTKm_FIND_REQUIRED_${component})
message(\"Could not load REQUIRED VTK-m component ${component}\")
else()
message(STATUS \"Could not load optional VTK-m component ${component}\")
endif()
endif()
continue()
endif()")
endif()"
)
endforeach()
set(VTKm_LOAD_COMPONENTS_COMMANDS "${VTKm_LOAD_COMPONENTS_COMMANDS}
message(WARNING \"No such VTK-m component: \${comp}\")
endforeach()" )
configure_package_config_file(