Skip to content
Snippets Groups Projects
Commit 672434d5 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Do not create target `NetCDF_Fortran`

I do not see the point of the additional target `NetCDF_Fortran`: we
have the target `PkgConfig::NetCDF_Fortran` and we can just create an
alias `NetCDF_Fortran::NetCDF_Fortran` for
`PkgConfig::NetCDF_Fortran`.
parent 2d8bd4c7
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,4 @@ if(PKG_CONFIG_VERSION_STRING VERSION_LESS "0.29.2"
"-- pkg_netcdf_fortran_includedir: ${pkg_netcdf_fortran_includedir}")
endif()
add_library(NetCDF_Fortran INTERFACE IMPORTED)
set_target_properties(NetCDF_Fortran PROPERTIES
INTERFACE_LINK_LIBRARIES PkgConfig::NetCDF_Fortran)
target_link_libraries(NetCDF_Fortran INTERFACE NetCDF::NetCDF)
add_library(NetCDF_Fortran::NetCDF_Fortran ALIAS NetCDF_Fortran)
add_library(NetCDF_Fortran::NetCDF_Fortran ALIAS PkgConfig::NetCDF_Fortran)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment