From 07f650a98249d7c5bf08a0e4610edc31fce89872 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 2 Jun 2025 17:02:38 -0400 Subject: [PATCH] try to work around compilation issues --- cmake/Modules/Packages/GPU.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/Packages/GPU.cmake b/cmake/Modules/Packages/GPU.cmake index efc9f1f764..6ce85f10c5 100644 --- a/cmake/Modules/Packages/GPU.cmake +++ b/cmake/Modules/Packages/GPU.cmake @@ -484,9 +484,9 @@ RegisterFixStyle(${GPU_SOURCES_DIR}/fix_gpu.h) get_property(GPU_SOURCES GLOBAL PROPERTY GPU_SOURCES) if(BUILD_MPI) - target_link_libraries(gpu PRIVATE MPI::MPI_CXX) + target_link_libraries(gpu PUBLIC MPI::MPI_CXX) else() - target_link_libraries(gpu PRIVATE mpi_stubs) + target_link_libraries(gpu PUBLIC mpi_stubs) endif() set_target_properties(gpu PROPERTIES OUTPUT_NAME lammps_gpu${LAMMPS_MACHINE})