From 40d297dfe73b7f859129cdbde97289984b8f62ff Mon Sep 17 00:00:00 2001 From: shawnz Date: Fri, 23 May 2025 14:47:55 +0800 Subject: [PATCH] Bug 5300528: Add MPI_C_LIBRARIES for user defined MPI path --- Samples/0_Introduction/simpleMPI/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Samples/0_Introduction/simpleMPI/CMakeLists.txt b/Samples/0_Introduction/simpleMPI/CMakeLists.txt index 49a4b5ae..3c781f03 100644 --- a/Samples/0_Introduction/simpleMPI/CMakeLists.txt +++ b/Samples/0_Introduction/simpleMPI/CMakeLists.txt @@ -37,6 +37,7 @@ target_compile_features(simpleMPI PRIVATE cxx_std_17 cuda_std_17) ) target_link_libraries(simpleMPI PUBLIC + ${MPI_C_LIBRARIES} ${MPI_CXX_LIBRARIES} )