Add vtkm_cont_testing to interface of vtkm_cont

Recent changes to VTK-m include changes to MakeDataSet.h that require
the vtkm_cont_testing library to be loaded. This is problematic for
software using an earlier minor revision as they do not expect to need
to include this library.

For now, include vtkm_cont_testing in the interface of vtkm_cont so that
downstream code will load it. This should be a temporary solution. As we
move to new versions of VTK-m, we should break this link and require
downstream components to include it themselves.
This commit is contained in:
Kenneth Moreland 2022-03-16 14:44:42 -06:00
parent 2723cd082b
commit 9d6f63b677

@ -115,6 +115,12 @@ vtkm_library(
)
target_link_libraries(vtkm_cont_testing PUBLIC vtkm_cont)
# Supports external code using deprecated functionality. In particular, MakeTestDataSet.cxx
# now needs symbols compiled in vtkm_cont_testing, but the code may expect to only need
# to include vtkm_cont. Add this circular link to let this continue to work.
# THIS SHOULD BE REMOVED FOR THE 2.0 RELEASE!!!!
target_link_libraries(vtkm_cont INTERFACE vtkm_cont_testing)
if(VTKm_ENABLE_TESTING)
vtkm_unit_tests(SOURCES ${unit_tests} DEFINES VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG)