diff --git a/modules/find/FindEZTRACE.cmake b/modules/find/FindEZTRACE.cmake index a68e3967415c513005da469a80b0beb34eaf2a83..a511f1fc20a2dd886ae6eeb60f9e46321ed04a52 100644 --- a/modules/find/FindEZTRACE.cmake +++ b/modules/find/FindEZTRACE.cmake @@ -114,12 +114,12 @@ if (PKG_CONFIG_EXECUTABLE) message(STATUS "${Magenta}Looking for EZTRACE-MPI - not found.${ColourReset}") endif() - list(APPEND EZTRACE_LIBRARIES ${EZTRACE_MPI_LIBRARIES}) + list(APPEND EZTRACE_LINK_LIBRARIES ${EZTRACE_MPI_LIBRARIES}) if (MPI_FOUND) if (MPI_C_INCLUDE_PATH) list(APPEND EZTRACE_INCLUDE_DIRS ${MPI_C_INCLUDE_PATH}) endif() - list(APPEND EZTRACE_LIBRARIES ${MPI_C_LIBRARIES}) + list(APPEND EZTRACE_LINK_LIBRARIES ${MPI_C_LIBRARIES}) endif() endif(EZTRACE_LOOK_FOR_MPI)