You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One item in the LINK_LIBRARIES list is the netcdff_c library — which is declared as an OBJECT library in fortran/CMakeLists.txt. An OBJECT library does not produce a STATIC or SHARED library, just a set of object files. Nevertheless, -lnetcdff_c gets added to NC_FLIBS and ends up in the nf-config script. For builds using MPI, an additional non-library dependency MPI::MPI_Fortran exists in LINK_LIBRARIES and gets added as -lMPI::MPI_Fortran to nf-config.
The result is that any build system using nf-config to generate a library dependency list includes these non-library components that cannot be resolved by the linker:
Versions: 4.5.4, 4.6.0
The CMake build system creates the list of library dependencies in
NC_FLIBS
by looping over the link libraries associated with thenetcdff
target:One item in the
LINK_LIBRARIES
list is thenetcdff_c
library — which is declared as an OBJECT library infortran/CMakeLists.txt
. An OBJECT library does not produce a STATIC or SHARED library, just a set of object files. Nevertheless,-lnetcdff_c
gets added toNC_FLIBS
and ends up in thenf-config
script. For builds using MPI, an additional non-library dependencyMPI::MPI_Fortran
exists inLINK_LIBRARIES
and gets added as-lMPI::MPI_Fortran
tonf-config
.The result is that any build system using
nf-config
to generate a library dependency list includes these non-library components that cannot be resolved by the linker:and
The text was updated successfully, but these errors were encountered: