Remove testing include from ZFP worklet headers

Several of the ZFP worklet headers included `vtkm/cont/testing/
MakeTestDataSet.h`. This is a problem because if testing is turned off,
then `MakeTestDataSet.h` attempts to include a file that is not
generated, so the compile just fails if testing is off (and the testing
library is not on). This include must be a remanent of some old testing
code during development. It can be safely removed.
This commit is contained in:
Kenneth Moreland 2022-03-18 10:50:23 -06:00
parent 8d5e636ac4
commit 97f5ed640f
4 changed files with 9 additions and 3 deletions

@ -0,0 +1,9 @@
# Fix compile when testing is turned off
There were some places in VTK-m's code that included test header files even
though they were not tests. As more code goes into libraries, this can
break the build.
Remove VTK-m library dependence on testing code where found. Also added a
CI build that turns off all testing to check for this condition in the
future.

@ -17,7 +17,6 @@
#include <vtkm/cont/ArrayHandleCounting.h>
#include <vtkm/cont/AtomicArray.h>
#include <vtkm/cont/Timer.h>
#include <vtkm/cont/testing/MakeTestDataSet.h>
#include <vtkm/filter/zfp/worklet/zfp/ZFPDecode1.h>
#include <vtkm/filter/zfp/worklet/zfp/ZFPTools.h>
#include <vtkm/worklet/DispatcherMapField.h>

@ -17,7 +17,6 @@
#include <vtkm/cont/ArrayHandleCounting.h>
#include <vtkm/cont/AtomicArray.h>
#include <vtkm/cont/Timer.h>
#include <vtkm/cont/testing/MakeTestDataSet.h>
#include <vtkm/filter/zfp/worklet/zfp/ZFPDecode2.h>
#include <vtkm/filter/zfp/worklet/zfp/ZFPTools.h>
#include <vtkm/worklet/DispatcherMapField.h>

@ -17,7 +17,6 @@
#include <vtkm/cont/ArrayHandleCounting.h>
#include <vtkm/cont/AtomicArray.h>
#include <vtkm/cont/Timer.h>
#include <vtkm/cont/testing/MakeTestDataSet.h>
#include <vtkm/filter/zfp/worklet/zfp/ZFPDecode3.h>
#include <vtkm/filter/zfp/worklet/zfp/ZFPTools.h>
#include <vtkm/worklet/DispatcherMapField.h>