Skip to content

Commit

Permalink
fix find_dependency boost (with 1.70) #1296
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchabannes committed Dec 9, 2019
1 parent 80dd7c8 commit 8730c7c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions feelpp/cmake/modules/Feel++Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ if (NOT FEELPP_DONT_SETUP_CMAKE)

include(CMakeFindDependencyMacro)

if ( CMAKE_VERSION VERSION_LESS 3.10 )
find_dependency(MPI)
find_dependency(Boost ${BOOST_MIN_VERSION})
else()
find_dependency(MPI REQUIRED)
find_dependency(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS ${BOOST_COMPONENTS_REQUIRED})
endif()
find_dependency(MPI REQUIRED)

# workaround bug https://github.com/boostorg/boost_install/issues/5
set(__org ${BUILD_SHARED_LIBS})
set(BUILD_SHARED_LIBS ON)
find_dependency(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS ${BOOST_COMPONENTS_REQUIRED})
set(BUILD_SHARED_LIBS ${__org})

if ( FEELPP_HAS_ANN )
find_dependency( ANN )
Expand Down

0 comments on commit 8730c7c

Please sign in to comment.