FortranCInterface: Fix broken search for test exe when cross-compiling
Previously the find_program
call we used to locate the test executable
but that can be broken by CMAKE_FIND_ROOT_PATH_MODE_PROGRAM
. Instead
teach the test project to write a file with the location of the
executable it builds. Load that file to get the exact location.
Fixes: #20390 (closed)