Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] incorrectly set BOOST_VERSION

Subject: CGAL users discussion list

List archive

[cgal-discuss] incorrectly set BOOST_VERSION


Chronological Thread 
  • From: Edoardo Milotti <>
  • To:
  • Subject: [cgal-discuss] incorrectly set BOOST_VERSION
  • Date: Mon, 22 Mar 2010 19:46:41 +0100

I use CMake 2.8.0, Boost 1.42.0 (installed with MacPorts on MacOS X 10.6.2),
and I just installed CGAL 3.6. It seems that BOOST_VERSION is not properly
set by CMake, although CMake detects the correct Boost version. This is part
of the CMake output:

-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- thread
-- Boost include: /opt/local/include
-- Boost libraries:
optimized;/opt/local/lib/libboost_thread-mt.dylib;debug;/opt/local/lib/libboost_thread-mt-d.dylib
-- Boost definitions:
-- USING BOOST_VERSION = '1.42.0'

The compile phase went smoothly and then I compiled the examples with "make
examples". Here the procedure halted because it could not find
boost/property_map.hpp. However the header files contain the preprocessor
statements

#if BOOST_VERSION >= 104000
#include <boost/property_map/property_map.hpp>
#else
#include <boost/property_map.hpp>
#endif

and <boost/property_map/property_map.hpp> does exist in my installation. So I
commented out part of the preprocessor code

//#if BOOST_VERSION >= 104000
#include <boost/property_map/property_map.hpp>
//#else
//#include <boost/property_map.hpp>
//#endif

wherever needed, and this fixed the problem.

Best wishes,

Edoardo Milotti







Archive powered by MHonArc 2.6.16.

Top of Page