I'm trying to use CheckFortranFunctionExists to test for getarg which is failing on an Ubuntu 16.04 test machine and OS X test machine. The test I have put together is provided below
in text form.
The test for getarg fails, the executable 'bob' fails to link but the executable 'dave' links and runs as expected.
The error from 'bob' is
The files used in text form:
================== CMakeLists.txt =====================
Can anyone explain why this is happening and how I would go about testing for the getarg function if I
am doing it wrong.