Alan W. Irwin - 2017-03-29

The only quibble I have with your cmake options is you did not specify
-DBUILD_TEST=ON (which allows you to build and test all our standard
examples in the build tree).

With regard to the build issue you found with the Intel compiler on
Linux, we do have positive experience with that compiler on Windows,
but we have no experience with it on Linux. But my understanding is
it should "just work" on both platforms.

Therefore, to find out more about the build issue you encountered, I
did a google search using the search terms <"ld: warning: libimf" "not
found"> and got lots of hits. So you are not alone. The general
advice (e.g.,
https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/271188)
to deal with such issues is to set up your ifort environment
correctly. For example, there was a suggestion at that site to source
ifortvars. I assume that is a file that sets some key environment
variables appropriately for the ifort compiler on Linux.

After setting up ifort correctly (as far as you know), I suggest you
initially test it with a much simpler project than PLplot, namely the
project we have created in cmake/test_fortran. See
cmake/test_fortran/README for the description of that project. If
that simple "hello world" project fails to compile with ifort it is
much easier to debug than the full PLplot project.