[Paraview] Errors when using find_package(ParaView REQUIRED)

David Doria daviddoria at gmail.com
Tue Dec 13 16:51:53 EST 2011


On Tue, Dec 13, 2011 at 3:31 PM, Utkarsh Ayachit
<utkarsh.ayachit at kitware.com> wrote:
> Oh, are you using FIND_PACKAGE(VTK) and FIND_PACKAGE(ParaView) in the
> source? Bet that's what causing the problem. I'm not sure that's going
> to work. Try just using ParaView OR VTK.

That certainly works. The only problem I have with that is I have to do a

if(buildPlugin)
 use(Paraview)
else
 use(VTK)
endif()

in my root CMakeLists.txt. It would seem nicer to do

if(buildPlugin)
 add_subdirectory(Plugin)
endif()

and in the Plugin/CMakeLists.txt do

use(ParaView)

Is there a pattern more similar to this that would only use one of them?

Thanks,

David


More information about the ParaView mailing list