<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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. <br>
    <br>
    On 24/04/2012 10:57 AM, Michel Lestrade wrote:
    <blockquote cite="mid:4F96E99E.5090800@crosslight.com" type="cite">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:
      <br>
      <br>
      cmake -G "NMake Makefiles" -DMPI_C_COMPILER:FILEPATH="C:/Program
      Files (x86)/Intel/MPI/4.0.3.009/em64t/bin/mpicc"
      <br>
      <br>
      but the CMake cache file reports the following entry instead (even
      after deleting the old cache and CMake tree):
      <br>
      <br>
      //Cleared
      <br>
      MPI_C_COMPILER:FILEPATH=MPI_C_COMPILER-NOTFOUND
      <br>
      <br>
      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.
      <br>
      <br>
      Can anyone explain what I am doing wrong ?
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--

Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
    </blockquote>
  </body>
</html>