Re: Regression in old build system using CMake 3.12?

David Gobbi <[email protected]> Wed, 23 Jan 2019 07:03:37 -0700
Newsgroups gmane.comp.lib.vtk.user
Message-ID <CANwS1=G9k=vrtgpqB9J_gCuc3VzhR7TeAdQzmH9NJ86-6Aj6EA@mail.gmail.com>
On Tue, Jan 22, 2019 at 4:32 PM BBerco <[email protected]> wrote:

> I'm sorry for the confusion. Actually, the problem appears to arise when
> vtk
> and the armadillo library are loaded together. I haven't tried more
> combinations of library to see if the problem only arises in this specific
> case.
>
> Anyways, here's an even more minimal example demonstrating the problem. The
> CMakeLists.txt shows two different ways to find VTK. The call that's
> relying
> on COMPONENTS works fine, but the non-specific one leads to the error trace
> pasted below.
>

I tried the example with VTK 8.2, cmake 3.13, and armadillo-9.200.7.  For
that combination, the example builds without errors.  When I get to work, I
can try again with VTK 8.1.

As for COMPONENTS in find_package, the components chosen may change the
compile definitions and include directories. For newer versions of cmake,
VTK tries to use newer features of cmake for attaching compile definitions
and include dirs to the library dependencies that require them.

  David

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers