NOAA-EMC / CMakeModules

Common cmake module files used by spack and cmake to find dependencies
Other
4 stars 14 forks source link

FindNetCDF.cmake apparently only uses the C library version? #48

Open edwardhartnett opened 3 years ago

edwardhartnett commented 3 years ago

When we call this from UFS_UTILS CMake build:

find_package(NetCDF 4.3.3 REQUIRED C Fortran)

We are looking for version 4.3.3 of the netcdf-c library. However, we are not checking the version number of the netcdf-fortran library.

That has to be correct too. Is there a way to check that?

kgerheiser commented 3 years ago

I don't think that's possible without splitting up FindNetCDF into one for each language. You can only specify the version once.