diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 96c69ef3..d8b6e753 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -43,7 +43,13 @@ endif() # NetCDF library find_package(PkgConfig REQUIRED) + + + pkg_check_modules(netcdff IMPORTED_TARGET REQUIRED netcdf-fortran) +pkg_check_modules(netcdfc IMPORTED_TARGET REQUIRED netcdf) + + ################################################################################ # yaml-cpp diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e5be6993..3b7c4a07 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -24,6 +24,7 @@ message(STATUS "lapack libraries: ${LAPACK_LIBRARIES}") target_link_libraries(tuvx_object PRIVATE PkgConfig::netcdff + PkgConfig::netcdfc yaml-cpp::yaml-cpp )