[CMake] [CMAKE] Defining MPI_C_COMPILER on Windows

Michel Lestrade michel.lestrade at crosslight.com
Tue Apr 24 14:42:40 EDT 2012


Replying to my own post in case future users run into the same issue: 
the extension (.bat in this case) must be specifically included for the 
file to be found.

On 24/04/2012 10:57 AM, Michel Lestrade wrote:
> I need to pass the MPI_C_COMPILER value through the command line since 
> the Intel MPI libraries are not being recognized properly by the 
> FindMPI script (CMake 2.8.8). I used the following syntax:
>
> cmake -G "NMake Makefiles" -DMPI_C_COMPILER:FILEPATH="C:/Program Files 
> (x86)/Intel/MPI/4.0.3.009/em64t/bin/mpicc"
>
> but the CMake cache file reports the following entry instead (even 
> after deleting the old cache and CMake tree):
>
> //Cleared
> MPI_C_COMPILER:FILEPATH=MPI_C_COMPILER-NOTFOUND
>
> I am a complete newbie to CMake and while this should be obvious, I 
> cannot figure out the right syntax. I even tried using a subst'ed 
> drive to define the path without using a long directory name (just in 
> case): the variable is still "cleared" by something.
>
> Can anyone explain what I am doing wrong ?
>
>
>
> --
>
> 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 CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120424/2366fe3b/attachment.htm>


More information about the CMake mailing list