[CMake] FindMPI
Chuck Atkins
chuck.atkins at kitware.com
Thu Dec 1 14:47:20 EST 2016
> 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
> {LIBRARIES,INCLUD_DIRS} etc.?
>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161201/8be64e19/attachment.html>
More information about the CMake
mailing list