Merge pull request #2837 from islas/linkObjectTargets

Link against internally defined libraries
This commit is contained in:
Ward Fisher 2024-01-29 11:12:41 -08:00 committed by GitHub
commit 41166da4da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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