[vtk-developers] find_package(vtk) not supporting version anymore
Simon Drouin
drouin.simon at gmail.com
Mon Jan 14 23:47:06 EST 2019
Hi All,
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
cmake doesn't seem to be able to determine the version now.
s.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20190114/f3d4a903/attachment.html>
-------------- next part --------------
cmake_minimum_required(VERSION 3.3...3.12 FATAL_ERROR)
PROJECT (Rendering)
find_package(VTK 8.90.0 REQUIRED COMPONENTS CommonCore
FiltersSources
InteractionStyle
RenderingOpenGL2 )
set(RENDERING_EXAMPLES_SRCS
Cylinder
)
foreach(name ${RENDERING_EXAMPLES_SRCS})
add_executable(${name} MACOSX_BUNDLE ${name}.cxx)
target_link_libraries(${name} ${VTK_LIBRARIES} )
endforeach()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cylinder.cxx
Type: application/octet-stream
Size: 2973 bytes
Desc: not available
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20190114/f3d4a903/attachment.obj>
More information about the vtk-developers
mailing list