Unidata / netcdf-fortran

Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
Other
244 stars 98 forks source link

Cmake Error: CMAKE_Fortran_PREPROCESS_SOURCE #409

Closed universal-bobcat closed 1 year ago

universal-bobcat commented 1 year ago

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.