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()