The problem is with NAG under cmake: clang has apparently been updated and “auto detects” fortran and supplies itself with a flag that it does not support. :-)
bash-3.2$ /usr/bin/cc -E -C t.F90
error: invalid value 'f95-cpp-input' in '-x f95-cpp-input'
Not sure what the best workaround is yet. We may have to assume that gcc is installed. :-(
I cannot even find what options -x expects so that we could try to override. Could possibly play games with file suffix.
[...] kludged CMake to use a temporary file with .C as the suffix and all worked.
I suppose we should make the kludge only happen under 10.9.
[TLC]
We've pushed mods that clean up the dependency calculation and compile for NAG.