|
Boost Interest : |
Subject: Re: [Boost-cmake] Another small issue with Boost.CMake and FindBoost.cmake
From: Michael Jackson (mike.jackson_at_[hidden])
Date: 2009-12-16 13:58:49
On 12/16/09 1:41 PM, in article
2A66CBE0-57C7-45D4-8D44-CDDC6B93557F_at_[hidden], "Michael Jackson"
wrote:
> Trying things out on windows and I noticed that when I build static
> libraries that the names of the libraries are NOT prefixed with "lib"
> like in the bjam version of the build. This causes the FindBoost
> included with CMake 2.6.4 and 2.8.0 to NOT find an installed boost on
> Windows using Visual Studio.
>
> Where would this sort of thing be set in the CMake files?
>
> _________________________________________________________
> Mike Jackson
On line 705 of BoostCore.cmake is the line that sets the library prefix
using the LIBPREFIX variable. From what I can tell this cmake variable is
Not set anywhere else in the build system (at least that I can find). Adding
a Cmake cache entry for LIBPREFIX:STRING=lib on windows for static builds
allowed the proper naming. Not sure if this is by design or got left out by
accident.
Maybe we need a "bjam" compatible mode to set all these types of things for
the next few releases of boost and Cmake. At least until Cmake as it is
distributed can handle the new paths in the boost installation.
Mike