CMake: Make plugin target links public

This commit is contained in:
Peter Hill 2023-10-02 10:29:33 +01:00
parent 18c813b20b
commit f71d05988e
No known key found for this signature in database
GPG Key ID: 0C6B9742E72848EE

View File

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