Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ endforeach ()

# Try to find NetCDF dependency. Try standard find_package first.
find_package(NetCDF QUIET COMPONENTS C Fortran)
if (NetCDF_FOUND)
if (NetCDF_C_FOUND AND NetCDF_Fortran_FOUND)
if(TARGET NetCDF::NetCDF_Fortran)
set(CPRNC_NETCDF_FORTRAN_LIB NetCDF::NetCDF_Fortran)
set(CPRNC_NETCDF_C_LIB NetCDF::NetCDF_C)
Expand Down