On Fri, May 25, 2012 at 2:32 PM, Tim Crews <[email protected]> wrote:
<stuff cut>
> Since the intent of BOOST_PYTHON appears to be that it will be "python" if
> USE_PYTHON is enabled and the Python libraries are found, and blank
> otherwise, I simply commented out the OPTIONAL_COMPONENTS argument of
> find_package on line 66 of CMakeLists.txt, but added ${BOOST_PYTHON} to the
> REQUIRED argument of find_package.

Attached is a patch for CMakeLists.txt so that this works properly, at
least with CMake 2.8.7 on Ubuntu 12.04.  I've never used CMake but it
seems to work both when --python is passed in and without.  It is a
simple one line change.

I was able to successfully use Boost version 1.48 which is available
in Universe in Ubuntu 12.04 to compile.

I have libboost1.48-all-dev installed, but I imagine that
libboost-{date-time,filesystem,system,regex,test,python}1.48-dev and
the associated dependencies would be sufficient.

-- 
Travis B. Hartwell
Software Toolsmith

Blogs:
http://iam.travishartwell.net/
http://the.softwaretoolsmith.com/

Where to find me:
http://findme.travishartwell.net/

Attachment: 0001-Work-with-Boost-Python.patch
Description: Binary data

Reply via email to