diff --git a/ompi/mca/pml/bfo/Makefile.am b/ompi/mca/pml/bfo/Makefile.am index b3d95bc4e0..84eb2f3c57 100644 --- a/ompi/mca/pml/bfo/Makefile.am +++ b/ompi/mca/pml/bfo/Makefile.am @@ -52,6 +52,12 @@ bfo_sources = \ pml_bfo_sendreq.h \ pml_bfo_start.c +# If we have CUDA support requested, build the CUDA file also +if MCA_ompi_cuda_support +bfo_sources += \ + pml_bfo_cuda.c +endif + if MCA_BUILD_ompi_pml_bfo_DSO component_noinst = component_install = mca_pml_bfo.la