[vtk-developers] find_package(vtk) not supporting version anymore

Ben Boeckel ben.boeckel at kitware.com
Tue Jan 15 09:38:04 EST 2019


On Mon, Jan 14, 2019 at 23:47:06 -0500, Simon Drouin wrote:
> It seems the recent changes in vtk-config.cmake have dropped support for
> specifying a version when calling find_package( vtk ). It this the intended
> new behaviour?
> 
> See the modified c++ example from the vtk source attached. The output of
> cmake (3.10.1 on macOS 10.14) is the following:
> 
> CMake Error at CMakeLists.txt:6 (find_package):
> Could not find a configuration file for package "VTK" that is compatible
> with requested version "8.90.0".
> 
> The following configuration files were considered but not accepted:
> 
> /Users/simon/ibis/vtk-git/build-deb-qt-5.9.7-osx-10.10/vtk-config.cmake,
> version: unknown

Ah, this is with the `vtk-config.cmake` at the top-level of the build
tree. It doesn't have a version file beside it. MR coming up soon.

--Ben


More information about the vtk-developers mailing list