[CMake] How do I specify VTK minimum version?

Victor Lamoine victor.lamoine at institutmaupertuis.fr
Mon Jul 24 10:52:21 EDT 2017


Thank you for the answers.

I used this script to fix my problem:

find_package(VTK 7.1.0 QUIET)
if (NOT VTK_FOUND)
  find_package(VTK 8.0.0 REQUIRED)
endif()
include(${VTK_USE_FILE})

Of course this will only work until there is a VTK 9.x.x version.



More information about the CMake mailing list