Boost timer config problem on some platforms

Bug #1086116 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Low
Johannes Ring

Bug Description

The lines

# Boost timer was not a separate Boost component until version 1.48
if ("${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}" VERSION_GREATER "1.47")
  find_package(Boost COMPONENTS timer REQUIRED)
endif()

in CMakeLists.txt cause a problem on some systems (Scientific Linux 6 + cmake 2.8.10.1). Calling find_package twice overwrites the Boost variables that were set when find_package(Boost) wad called before the above lines. This causes build failure.

To keep it simple, can we just require Boost > 1.47?

Related branches

Revision history for this message
Johannes Ring (johannr) wrote :

If possible, I would like to keep support for older Boost versions for some more time. How about we instead do something like in the attached patch?

Johannes Ring (johannr)
Changed in dolfin:
status: New → Fix Committed
assignee: nobody → Johannes Ring (johannr)
milestone: none → 1.1.0
importance: Undecided → Low
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.