Unidata / netcdf-fortran

Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cmake Error: CMAKE_Fortran_PREPROCESS_SOURCE

universal-bobcat opened this issue · comments

I am attempting to build netCDF-fortran (pulled 2023/08/07) on Windows 10 x64. I am using Visual Studio 2019.
In CMakeLists.txt, I added set(CMAKE_Fortran_COMPILER "C:/Program Files (x86)/IntelSWTools/parallel_studio_xe_2020.4.912/compilers_and_libraries_2020/windows/bin/intel64/ifort.exe")
Now it complains about Cmake Error: CMAKE_Fortran_PREPROCESS_SOURCE. I was not able to figure out what this refers to.
Has anyone been able to move past this? Thanks

I see that netCDF-fortran does not officially support Windows, so I will close this.