<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>why does it not interrogate the MPI wrapper if set as FC or CC?</div></div></div></blockquote><div><br></div><div>CC, CXX, and FC env vars are just used to initialize the CMAKE_{C,CXX,Fortran}_COMPILER variables wihch CMake will then use as the "regular" compilers for a given language.  If those regular compilers already work with MPI then there's no need to retrieve the underlying settings that it uses.<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div> Would there be any harm in attempting to pull out the {LIBRARIES,INCLUD_DIRS} etc.? </div></div></div></blockquote><div><br></div><div>They should be empty.  People often think of the variables as "this is where MPI things are" which is not really what they mean.  What they are saying is "these are the extra things to add when useing MPI".  So if your primary compiler is an MPI wrapper then there's no extra includes or libraries to add.<br><br></div><div>- Chuck<br></div></div><br></div></div>