|
Boost : |
From: Larry Evans (cppljevans_at_[hidden])
Date: 2008-05-26 09:52:55
On 05/25/08 15:45, Larry Evans wrote:
> On 05/25/08 13:15, Maik Beckmann wrote:
[snip]
> Thanks. That prompted me to look further and I realized I should
have done:
>
> ccmake ../../src
>
> instead. Now it's working.
>
The page:
http://svn.boost.org/trac/boost/wiki/CMakeBuildConfiguration
says the following under the bolded CMakeCache.txt title:
<--- cut here ---
The same information is stored in a file CMakeCache.txt located in the
build directory. For this reason, after you've done the initial
configuration of a build directory you can invoke ccmake like this:
ccmake <path-to-build>
or have the makefiles do it for you:
make edit_cache
The CMakeLists.txt file is hand-editable, though this is usually not
as convenient as the cmake-supplied configuration tools mentioned
above. An excerpt of this file:
//
// Enable/Disable color output during build.
//
CMAKE_COLOR_MAKEFILE:BOOL=ON
//
// Use versioned library names, e.g., boost_filesystem-gcc41-1_34
//
BUILD_VERSIONED:BOOL=ON
>--- cut here ---
The CMakeCache.txt title indicates the filename is
CMakeCache.txt(which is only in the build directory); yet, the text
mentions CMakesLists.txt (which is only in the source
directory). Since the string ':BOOL' only occurs in the
CMakeCache.txt, I assume the phrase:
CMakeLists.txt file is hand-editable
on the above page should be:
CMakeCache.txt file is hand-editable
However, even in CMakeCache.txt there was no BUILD_VERSIONED:BOOL.
OTOH, apparently the flag is ON because when I ran make,
the library names in the build directory included:
libboost_date_time-gcc41-1_35_1.so.1.35.1
^^^^^
and I did specify g++-4.1.
So, is the BUILD_VERSIONED flag no longer valid or is there
some other way to set it?
-regards,
Larry
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk