[CMake] How do I specify VTK minimum version?

Rolf Eike Beer eike at sf-mail.de
Mon Jul 24 06:23:48 EDT 2017


Am Dienstag, 11. Juli 2017, 15:18:11 schrieb Victor Lamoine:
> Hi,
> 
> I am using CMake to set up a VTK project. Our project requires VTK to be
> version 7.1 or newer. I'm using Ubuntu 16.04 with CMake 3.5.1.
> 

> find_package(VTK 7.1 REQUIRED)
[…]
>   The following configuration files were considered but not accepted:
> 
>     /usr/local/lib/cmake/vtk-8.0/VTKConfig.cmake, version: 8.0.0
>     /usr/lib/cmake/vtk-6.2/VTKConfig.cmake, version: 6.2.0
> 
> I have also tried find_package(VTK 7.1*.0* REQUIRED), without success.
> 
> Why isn't VTK 8.0.0 accepted? It is a greater version number so I expected
> it to be ok. How do I specify that I want VTK 7.1 OR newer?

It could be that VTK sets in it's config file "same major version" 
compatibility.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170724/38e9a114/attachment.sig>


More information about the CMake mailing list