From 7b4b2cc986ab99b18aa482c42e636c489d701815 Mon Sep 17 00:00:00 2001 From: Felipe Olmos Date: Tue, 3 Oct 2023 19:40:30 +0200 Subject: [PATCH] Put mpi suffix in MODL target_link_libraries --- src/Learning/MODL/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Learning/MODL/CMakeLists.txt b/src/Learning/MODL/CMakeLists.txt index 7cb733f32..ddd9b6654 100644 --- a/src/Learning/MODL/CMakeLists.txt +++ b/src/Learning/MODL/CMakeLists.txt @@ -11,7 +11,7 @@ add_library(MODL_SO SHARED ${cppfiles}) target_link_libraries(MODL_SO PUBLIC DTForest KMDRRuleLibrary KWLearningProblem) if(MPI) - target_link_libraries(MODL PUBLIC PLMPI) + target_link_libraries(MODL${MPI_SUFFIX} PUBLIC PLMPI) target_link_libraries(MODL_SO PUBLIC PLMPI) endif()