Make boost_mpi link to MPI::MPI_C (refs #17)

This commit is contained in:
Peter Dimov
2019-10-25 18:30:51 +03:00
parent 276a5b42f1
commit 63c74f6456
+11
View File
@@ -725,6 +725,17 @@ rule generate-cmake-config- ( target : sources * : properties * )
""
: true ;
}
if $(name) = boost_mpi
{
print.text
"include(CMakeFindDependencyMacro)"
"find_dependency(MPI)"
"set_property(TARGET $(ltarget) APPEND PROPERTY INTERFACE_LINK_LIBRARIES MPI::MPI_C)"
""
: true ;
}
}
else
{