Why should I use CMake?

It’s possible to link as Brad said, but it’s not possible to build with libraries that have pre-built modules

Thank you, Milan. I realize that building with MPI is not as simple as I thought, as I can see now by checking what the wrapper does:

$ mpif90 --showme:link
-pthread -I/usr/lib/openmpi -L/usr/lib64 -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/usr/lib/openmpi -Wl,--enable-new-dtags -L/usr/lib/openmpi -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi
$ mpif90 --showme:compile 
-I/usr/include -pthread -I/usr/lib/openmpi

I really appreciate the efforts spent developing fpm and look forward to using it. To all developers, thanks a lot for your good work!

3 Likes