Boost logo

Boost Interest :

Subject: [Boost-cmake] Cmake Variable Naming
From: Michael Jackson (mike.jackson_at_[hidden])
Date: 2009-12-07 12:34:41


Just a comment on some of the variable naming within the Cmake files. There
are already some folks embedding the entire boost-cmake distribution into
their own projects, then using "add_subdirectory()" to try and build just
the parts that they need. Since Cmake does not really have a namespace I
think that a few of the variables may need to be prefixed with "BOOST_":

 ENABLE_DEBUG ON
 ENABLE_MULTI_THREADED ON
 ENABLE_RELEASE ON
 ENABLE_SHARED OFF
 ENABLE_SINGLE_THREADED OFF
 ENABLE_STATIC ON

Probably should be BOOST_ ENABLE_DEBUG.... Or Boost-Cmake may start to have
some unintended name clashing. Plus this helps keep all the boost variables
together in the Cmake-GUI and CCMake applications.

Thoughts?

Mike Jackson
<http://www.bluequartz.net>


Boost-cmake list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk