[vtkusers] Regression in old build system using CMake 3.12?
David Gobbi
david.gobbi at gmail.com
Wed Jan 23 09:03:37 EST 2019
On Tue, Jan 22, 2019 at 4:32 PM BBerco <bebe0705 at colorado.edu> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190123/ce2f77f2/attachment.html>
More information about the vtkusers
mailing list