Skip to content

Commit

Permalink
Merge pull request #2912 from WardF/cmake_targets_netcdf_fortran.wif
Browse files Browse the repository at this point in the history
Re-introduce targets into netCDFConfig.cmake.in
  • Loading branch information
WardF authored Apr 30, 2024
2 parents be9cb7f + 31b58c4 commit 4c14a63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netCDFConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
@PACKAGE_INIT@

set(NetCDFVersion "@PACKAGE_VERSION@")

set_and_check(netCDF_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
set_and_check(netCDF_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@")
set_and_check(netCDF_LIB_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")
set(netCDF_LIBRARIES netCDF::netcdf)

# include target information
Expand Down

0 comments on commit 4c14a63

Please sign in to comment.