<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Of course I read the documentation. Alas after trying various
settings described there in, nothing worked. my settings are ignored
and erased.<br>
<br>
why did they MPI_C_LIBRARIES and MPI_C_INCLUDE_DIRS/PATH get changed
from cache variables to not chached variables? that seems to be the
cause of the issue. Now how does one override the detection and
tell it what to use in the new module?<br>
<br>
Burlen<br>
<br>
<div class="moz-cite-prefix">On 09/14/2018 10:32 AM, Chuck Atkins
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOXZzG6f1N9X-CiuHXPxj9RMYsgGUJLQr9uE2C9Om573fSebJQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a
href="http://cmake.org/cmake/help/consulting.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>