Visual Studio: The Fortran compiler is not able to compile a simple test program.

I‘m a visual studio user under win11. Now I’d like compile the source code downloaded from github and further generate the vs 2022 project with Cmake 3.23.0-rc1(gui). But I met some mistakes and could not find the way out.
Ps:
Cmakelist.txt***********
cmake_minimum_required(VERSION 3.7)
project(GROOPS LANGUAGES CXX Fortran)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_Fortran_FLAGS “-std=legacy”)
include_directories(${PROJECT_SOURCE_DIR})
include(sourcesCXX.txt)
include(sourcesF77.txt)
include(sourcesF90.txt)
add_library(groopscore OBJECT ${SOURCES})


Error:

Actually I know little about Cmake, could some tell me what should I do to solve it?(I’d like to generate a vs project)
Many thanks!

I don’t think Visual Studio supports Fortran in any way other than through the Intel compiler. You’ll need to use Ninja or a Makefiles generator to use gfortran on Windows.

Cc: @brad.king