<div dir="auto">I'm curious why the component names were changed.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 10, 2019, 10:37 AM Ben Boeckel <<a href="mailto:ben.boeckel@kitware.com">ben.boeckel@kitware.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Jan 10, 2019 at 12:24:07 -0500, Aron Helser wrote:<br>
> Sorry, I should have started with the original problem. I started with this<br>
> file:<br>
> <br>
> cmake_minimum_required(VERSION 3.3 FATAL_ERROR)<br>
> PROJECT (mineview)<br>
> find_package(VTK REQUIRED)<br>
> vtk_module_config(VTK<br>
>   vtkCommonCore<br>
>   vtkCommonDataModel<br>
>   vtkFiltersGeneral<br>
>   vtkIOFFMPEG<br>
>   vtkIOImage<br>
>   vtkIOXML<br>
>   vtkInteractionStyle<br>
>   vtkRenderingOpenGL2<br>
>   vtkRenderingOpenVR<br>
> )<br>
> include(${VTK_USE_FILE})<br>
> <br>
> add_executable(mineview MACOSX_BUNDLE mineview.cxx Lobby.cxx View.cxx<br>
> AudioHandler.cxx)<br>
> target_link_libraries(mineview ${VTK_LIBRARIES} Xaudio2.lib opengl32<br>
> winmm.lib)<br>
> <br>
> but "vtk_module_config" doesn't exist anymore, right? So I tried to change<br>
> to this:<br>
> find_package(VTK<br>
>   COMPONENTS<br>
>   vtkCommonCore<br>
>  ...<br>
> <br>
> but then it complains:<br>
> <br>
> CMake Warning at CMakeLists.txt:5 (find_package):<br>
> Found package configuration file:<br>
> <br>
> C:/akit/vtk/build/lib/cmake/vtk-8.90/vtk-config.cmake<br>
> <br>
> but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT<br>
> FOUND. Reason given by package:<br>
> <br>
> Could not find the VTK package with the following required components:<br>
> vtkCommonCore.<br>
> <br>
> <br>
> Thus I am confused. :)<br>
> Hope those breadcrumbs help?<br>
<br>
COMPONENTS are now `CommonCore` and `FiltersGeneral` since they end up<br>
like `VTK::CommonCore`. I suppose the components list could be<br>
preprocessed to detect a leading `vtk` and remove it (warning that that<br>
name is deprecated).<br>
<br>
--Ben<br>
</blockquote></div>