Skip to content

Commit

Permalink
[cmake] Use VTK 9.3 on gcc 13.2.
Browse files Browse the repository at this point in the history
Fixes compile errors in VTK.
  • Loading branch information
bilke committed Dec 14, 2023
1 parent f4a837e commit 0da3bd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/cmake/DependenciesExternalProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ endif()
# Building from source requires newer hdf version
string(REPLACE "." "_" HDF5_TAG ${ogs.tested_version.hdf5})

if(COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.2)
set(ogs.minimum_version.vtk "9.3.0")
endif()

set(_vtk_source GIT_REPOSITORY https://github.com/kitware/vtk.git GIT_TAG
v${ogs.minimum_version.vtk}
)
Expand Down

0 comments on commit 0da3bd9

Please sign in to comment.