Due to a bug in the CMake script, the Fortran high-level interface examples were not built even when the interface was enabled. This PR provides a fix for that.