Standardize VTK version check pre-processing directives

Check for the build date of the exact introduction of the feature instead of the next tagged version
This commit is contained in:
Louis Gombert
2025-11-27 20:46:57 +01:00
committed by Max Wilfinger
parent bd90728f88
commit c9acda2a65
7 changed files with 17 additions and 13 deletions

View File

@@ -32,7 +32,7 @@
#include "FemResultObject.h"
#include "VTKExtensions/vtkFemFrameSourceAlgorithm.h"
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 3, 0)
#if VTK_VERSION_NUMBER < VTK_VERSION_CHECK(9, 2, 20230125)
# include "VTKExtensions/vtkCleanUnstructuredGrid.h"
#else
# include <vtkCleanUnstructuredGrid.h>

View File

@@ -151,7 +151,7 @@
#include <vtkAppendFilter.h>
#include <vtkArrayCalculator.h>
#include <vtkCellArray.h>
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 3, 0)
#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 2, 20230125)
# include <vtkCleanUnstructuredGrid.h>
#endif
#include <vtkCompositeDataSet.h>