> why does it not interrogate the MPI wrapper if set as FC or CC?

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.

> Would there be any harm in attempting to pull out the

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.

- Chuck

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 

Follow this link to subscribe/unsubscribe:

Reply via email to