Fixed warning with vtk 7.1. Dont add target "uninstall" if already added from some cmake dependencies

This commit is contained in:
matlabbe
2024-01-03 18:08:06 -08:00
parent 096592e4fc
commit 79db6b2811
2 changed files with 4 additions and 2 deletions

View File

@@ -1679,7 +1679,7 @@ bool CloudViewer::addElevationMap(
color[j] = 255 * dcolor[j] / 1.0;
}
#if VTK_MAJOR_VERSION > 7
#if VTK_MAJOR_VERSION > 7 || (VTK_MAJOR_VERSION==7 && VTK_MINOR_VERSION >= 1)
colors->InsertNextTypedTuple(color);
#else
colors->InsertNextTupleValue(color);