mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
Merge pull request #2837 from islas/linkObjectTargets
Link against internally defined libraries
This commit is contained in:
commit
41166da4da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user