Browse Source

FindBoost: Search next to MPI libs for graph_parallel (#14832)

In addition to the MPI libraries, graph_parallel lives in the MPI libdir
as well.
Ben Boeckel 11 years ago
parent
commit
f284b003d7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Modules/FindBoost.cmake

+ 2 - 1
Modules/FindBoost.cmake

@@ -954,7 +954,8 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
 
 
   # Compute component-specific hints.
   # Compute component-specific hints.
   set(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT "")
   set(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT "")
-  if(${COMPONENT} STREQUAL "mpi" OR ${COMPONENT} STREQUAL "mpi_python")
+  if(${COMPONENT} STREQUAL "mpi" OR ${COMPONENT} STREQUAL "mpi_python" OR
+     ${COMPONENT} STREQUAL "graph_parallel")
     foreach(lib ${MPI_CXX_LIBRARIES} ${MPI_C_LIBRARIES})
     foreach(lib ${MPI_CXX_LIBRARIES} ${MPI_C_LIBRARIES})
       if(IS_ABSOLUTE "${lib}")
       if(IS_ABSOLUTE "${lib}")
         get_filename_component(libdir "${lib}" PATH)
         get_filename_component(libdir "${lib}" PATH)