cmake: test reverse_graph instead of using version

It seems that some distros are using a patched Boost 1.62.0 which means our
workaround in reverse_graph has a conflict. Add a CMake test to see if we
need to use the patched reverse_graph.
This commit is contained in:
Matthew Barr
2017-01-18 15:16:18 +11:00
parent cacf07fe9b
commit 8c2e033540
4 changed files with 45 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
#include <boost/graph/reverse_graph.hpp>
#if (BOOST_VERSION == 106200)
#if defined(BOOST_REVGRAPH_PATCH)
// Boost 1.62.0 does not implement degree() in reverse_graph which is required
// by BidirectionalGraph, so add it.