mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
CMake: Make plugin target links public
This commit is contained in:
parent
18c813b20b
commit
f71d05988e
@ -55,7 +55,7 @@ MACRO(buildplugin TARGET TARGETLIB)
|
||||
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES RUNTIME_OUTPUT_NAME ${MANGLELIB})
|
||||
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES PREFIX "") # Critical that this be set to ""
|
||||
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES SUFFIX ".${PLUGINEXT}")
|
||||
TARGET_LINK_LIBRARIES(${TARGET} ${ALL_TLL_LIBS};${ARGN})
|
||||
TARGET_LINK_LIBRARIES(${TARGET} PUBLIC ${ALL_TLL_LIBS};${ARGN})
|
||||
IF(MSVC)
|
||||
target_compile_options(${TARGET} PRIVATE /Zi)
|
||||
# Tell linker to include symbol data
|
||||
@ -65,7 +65,7 @@ MACRO(buildplugin TARGET TARGETLIB)
|
||||
ENDIF()
|
||||
|
||||
IF(STATUS_PARALLEL)
|
||||
target_link_libraries(${TARGET} MPI::MPI_C)
|
||||
target_link_libraries(${TARGET} PUBLIC MPI::MPI_C)
|
||||
ENDIF(STATUS_PARALLEL)
|
||||
ENDMACRO()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user