[CMake] Trying to build Paraview for Visual Studio Express 2010

Bill Hoffman bill.hoffman at kitware.com
Wed Apr 4 17:30:19 EDT 2012


On 3/14/2012 1:21 PM, Francisco Caraballo wrote:
> Hello everyone.
>
> I'm using CMAKE to build Paraview with Visual Studio Express 2010. I'm
> having a problem with the generated solution. The problem is that one
> of the entries generated for included libraries (the MPI libraries)
> should be semi colon separated but it is space separated. The result
> of this is that the linker generates a lot of errors when building the
> project.
>
> This is the problematic entry:
> LINK : fatal error LNK1104: cannot open file 'C:\Program Files
> (x86)\MPICH2\lib\mpi.lib C:\Program Files (x86)\MPICH2\lib\cxx.lib'
>
> I tried to fix it by changing the included libraries manually project
> by project, but it is taking way too long.
>
> How can I solve this? I'm not familiar enough with CMAKE's
> architecture to pinpoint what I need to change.
>
I have reproduced your problem.  Adding the ; manually worked for me. 
The problem is in FindMPI.cmake.  It is already fixed in master of CMake.

Here is the bug report and the fix:

http://public.kitware.com/Bug/view.php?id=12874

-Bill



More information about the CMake mailing list