2
0
mirror of https://github.com/Unidata/netcdf-c.git synced 2025-03-19 17:30:27 +08:00

Link against internally defined libraries rather than pulling object files

This commit is contained in:
Anthony Islas 2024-01-08 22:53:12 +00:00
parent 6e636ef465
commit fd982d3b59

@ -47,10 +47,11 @@ IF(ENABLE_PLUGINS)
ENDIF()
FOREACH(LIBS ${liblib_LIBS})
SET(LARGS ${LARGS} $<TARGET_OBJECTS:${LIBS}>)
SET(LARGS ${LARGS} $<TARGET_NAME_IF_EXISTS:${LIBS}>)
ENDFOREACH()
ADD_LIBRARY(netcdf nc_initialize.c ${LARGS} )
ADD_LIBRARY(netcdf nc_initialize.c )
target_link_libraries( netcdf ${LARGS} )
IF(STATUS_PARALLEL)
# TODO: Make PUBLIC when other dependencies have PUBLIC/PRIVATE specified