Commit a1c1aacd authored by Ben Boeckel's avatar Ben Boeckel

boxlib: complete the link

The MPI Fortran library is required (it should be added to `FindBoxlib`
at some point). In addition, the C and Fortran libraries actually have a
cyclic dependency in between themselves, so duplicate them on the link
line to satisfy all symbols.
parent 32849318
......@@ -114,6 +114,9 @@ if(VISIT_BUILD_READER_Boxlib3D)
if(NOT MPI_CXX_FOUND)
find_package(MPI REQUIRED)
endif()
if(NOT MPI_Fortran_FOUND)
find_package(MPI REQUIRED COMPONENTS Fortran)
endif()
endif(VISIT_BUILD_READER_Boxlib3D)
visit_include_reader_source(Boxlib3D OFF)
......@@ -183,8 +186,9 @@ if(HAVE_LIBSILO AND VISIT_BUILD_READER_Silo)
endif(HAVE_LIBSILO AND VISIT_BUILD_READER_Silo)
if(Boxlib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
vtk_module_link(ParaView::IOVisItBridge PRIVATE ${Boxlib_LIBRARIES})
vtk_module_link(ParaView::IOVisItBridge PRIVATE ${Boxlib_LIBRARIES} ${Boxlib_LIBRARIES})
vtk_module_link(ParaView::IOVisItBridge PRIVATE ${GFortran_LIBRARIES})
vtk_module_link(ParaView::IOVisItBridge PRIVATE ${MPI_Fortran_LIBRARIES})
endif(Boxlib_FOUND AND VISIT_BUILD_READER_Boxlib3D)
if(HAVE_LIBMILI AND VISIT_BUILD_READER_Mili)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment