[vtk-developers] find_package arguments

David Doria daviddoria at gmail.com
Thu Feb 2 14:23:01 EST 2012


Is this the suggested way to check for a particular version of VTK?

FIND_PACKAGE(VTK REQUIRED)

if(${VTK_MAJOR_VERSION} LESS 5 OR ${VTK_MINOR_VERSION} LESS 8)
  message("Your VTK version is too old!")
endif()

Some libraries have something like:

FIND_PACKAGE(VTK 5.8 REQUIRED)

but that doesn't seem to work for VTK's find script? It seems like a
much more expressive way to deal with version checking.

David



More information about the vtk-developers mailing list