2017-07-24 12:23 GMT+02:00 Rolf Eike Beer <e...@sf-mail.de>: > 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.
Indeed. This comment from VTKConfigVersion.cmake explains it: # The created file sets PACKAGE_VERSION_EXACT if the current version string and # the requested version string are exactly the same and it sets # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version, # but only if the requested major version is the same as the current one. Elvis > > Eike > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake