Skip to content

Commit

Permalink
Remove mpi dependency in boost
Browse files Browse the repository at this point in the history
  • Loading branch information
shrijitsingh99 committed Apr 18, 2020
1 parent e78a39d commit fdc9839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ set(Boost_ADDITIONAL_VERSIONS
set(Boost_NO_BOOST_CMAKE ON)

# Required boost modules
set(BOOST_OPTIONAL_MODULES serialization mpi) # MPI needed?
set(BOOST_OPTIONAL_MODULES serialization)
set(BOOST_REQUIRED_MODULES filesystem date_time iostreams system)

# Temporarily clean out CMAKE_MODULE_PATH, so that we can pick up the built-in Find-module from CMake:
set( CMAKE_MODULE_PATH_BAK ${CMAKE_MODULE_PATH} )
set( CMAKE_MODULE_PATH )

# Call CMake's own Find-module
find_package(Boost 1.55.0 REQUIRED COMPONENTS ${BOOST_REQUIRED_MODULES} OPTIONAL_COMPONENTS ${BOOST_OPTIONAL_MODULES})
find_package(Boost 1.55.0 REQUIRED COMPONENTS ${BOOST_REQUIRED_MODULES} OPTIONAL_COMPONENTS ${BOOST_OPTIONAL_MODULES})

set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH_BAK} )

Expand Down

0 comments on commit fdc9839

Please sign in to comment.