[vtk-developers] target_link_libraries and spaces in path (cmake 2.8.8)
David Cole
david.cole at kitware.com
Mon Sep 17 19:18:18 EDT 2012
It should not be necessary in that context. Where else is MPI_LIBRARIES referenced, though? Is it used in a configured script of some sort?
On Sep 17, 2012, at 5:44 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
> I'm running into curious issue with target_link_libraries() with CMake 2.8.8.
>
> The issue manifests itself on ParaView Windows dashboards with MSMPI
> (http://open.cdash.org/viewBuildError.php?buildid=2567995).
> vtkParallelMPI libraries is missing link to msmpi.lib file. This is
> despite the fact that VTK/Parallel/MPI/CMakeLists.txt has the
> following line:
>
> target_link_libraries(vtkParallelMPI ${MPI_LIBRARIES})
>
> and I verified that the MPI_LIBRARIES is indeed a full path to the
> msmpi.lib file. The only special thing is that the path to msmpi.lib
> file has spaces in it.
> If I change the line to the following, things build just fine.
>
> target_link_libraries(vtkParallelMPI "${MPI_LIBRARIES}")
>
> Is that indeed necessary, or am I missing something obvious here?
>
> Utkarsh
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
More information about the vtk-developers
mailing list