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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user