← Back to team overview

dolfin team mailing list archive

Re: Fwd: [Branch ~dolfin-core/dolfin/wells] Rev 6282: Merge Boost MPI code.

 

On 27 September 2011 10:16, Johannes Ring <johannr@xxxxxxxxx> wrote:
> On Tue, Sep 27, 2011 at 10:04 AM, Kristian Ølgaard
> <k.b.oelgaard@xxxxxxxxx> wrote:
>> On 27 September 2011 09:25, Johannes Ring <johannr@xxxxxxxxx> wrote:
>>> On Tue, Sep 27, 2011 at 9:19 AM, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
>>>> This change will break the buildbots until Boost is updated on the buildbots.
>>>
>>> Yes, I'm working on this now (two fixed, two to go).
>>
>> A simple question related to this, to help understanding the
>> CMakeLists.txt file better.
>>
>> I installed libboost-mpi-dev and everything worked fine. This seems a
>> bit strange to me since I'm running boost version 1.42.0, but looking
>> in the CMakeLists.txt file I see the lines:
>>
>> set(Boost_ADDITIONAL_VERSIONS 1.43 1.43.0 1.44 1.44.0 1.45 1.45.0 1.46
>> 1.46.0 1.46.1)
>>
>> if (DOLFIN_ENABLE_MPI AND MPI_FOUND)
>>  find_package(Boost 1.36 COMPONENTS filesystem program_options system
>> thread iostreams mpi REQUIRED)
>> else()
>>  find_package(Boost 1.36 COMPONENTS filesystem program_options system
>> thread iostreams REQUIRED)
>> endif()
>> find_package(Boost 1.36 COMPONENTS filesystem program_options system
>> thread iostreams REQUIRED)
>>
>> If 1.42 or 1.42.0 was in the list of ADDITIONAL_VERSIONS, or if '1.36'
>> was '1.42', I could understand it. But if '1.36' works as a minimum
>> requirement, then why bothering setting additional versions?
>
> The 1.36 is the minimum required version for DOLFIN, while the
> Boost_ADDITIONAL_VERSIONS variable is used to help CMake find newer
> versions of Boost that wasn't available when CMake 2.8.0 was released
> (see FindBoost.cmake).

OK, that makes sense. Thanks.

Kristian

> Johannes
>


References