<div dir="ltr"><div dir="ltr"><div>Hi Burlen,</div><div>_LIBRARIES and _INCLUDE_DIRS are non-cached output variables.  The new functionality should be documented as to how to guide the current FindMPI: <a href="https://cmake.org/cmake/help/v3.12/module/FindMPI.html#variables-for-locating-mpi">https://cmake.org/cmake/help/v3.12/module/FindMPI.html#variables-for-locating-mpi</a> .  That being said, is it incorrectl6y detecting or determine the MPI installation?  If that's the case then we should probably fix that issue instead.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">----------<br>Chuck Atkins<br>Staff R&D Engineer, Scientific Computing<br>Kitware, Inc.<br>(518) 881-1183<br></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 13, 2018 at 4:46 PM Burlen Loring <<a href="mailto:burlen.loring@gmail.com">burlen.loring@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm trying to transition from cmake 3.8.2 to cmake 3.11.4. There are a <br>
number of changes the way FindMPI.cmake behaves in 3.11 that are making <br>
this difficult.<br>
<br>
In 3.11 how do I override the settings? For instance I want to set <br>
MPI_C_LIBRARIES, MPI_C_INCLUDE_DIRS? In 3.8 all I had to do was set <br>
those variables myself, before find_package(MPI), and my setting were <br>
used. in 3.11 find_package(MPI) ignores, and wipes out my settings, and <br>
then fails.<br>
<br>
Isn't it a defacto standard of cmake to be able to override find modules <br>
by setting the libraries and include dirs before the module runs?<br>
<br>
Burlen<br>
<br>
<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>