diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index b0990baed..8de26592f 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -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()