<div class="gmail_quote">On Thu, Apr 9, 2009 at 8:31 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 09.04.09 12:49:09, Jonatan Bijl wrote:<br>
> I've compiled the static versions of the boost libraries. When I use<br>
> findBoost to detect the unit_test_framework, it gives the following<br>
> message:<br>
<br>
</div>Try to run cmake --trace to find out more...<br>
<div class="im"><br>
> But the variables Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEBUG and<br>
> Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE are not found.<br>
<br>
</div>What about BoosT_UNIT_TEST_FRAMEWORK_LIBRARY, is that one set? The<br>
DEBUG/RELEASE variables are only set (IIRC) when both debug and release<br>
libs are being found.<br>
<div class="im"><br>
> I have set the additional-versions and use-static-libs flags before<br>
> calling find_package<br>
><br>
> I guess it has to do with the -s suffix the library files have<br>
> (libboost_unit_test_framework-mt-d-s.a)<br>
<br>
</div>If you look at FindBoost.cmake it already adds the -s when using static<br>
libs on win32. However it seems it expects -s-d.a and not -d-s.a. That<br>
may be the bug. Also FindBoost.cmake doesn't use -d, its just "d" there<br>
(and potentially g too). So it searches for <component>-mt-s followed by<br>
either d, gd without a dash in between. At least my cmake 2.6.3 rc7 does<br>
that.</blockquote><div><br>I'm a bit confused. The Boost documentation succinctly states that the generated filenames have one ABI tag.<br><br>"For example, if you build a debug version of your code for use
with debug versions of the static runtime library and the
STLPort standard library in “native iostreams” mode,
the tag would be: <tt class="docutils literal"><span class="pre">-sgdpn</span></tt>."<br><a href="http://www.boost.org/doc/libs/1_38_0/more/getting_started/windows.html#library-naming">http://www.boost.org/doc/libs/1_38_0/more/getting_started/windows.html#library-naming</a><br>
<br>Where did you find "libboost_unit_test_framework-mt-d-s.a"? What version of Boost is this? Did you build it yourself or was it packaged somewhere?<br><br>ABI tags definitely need to be reworked in FindBoost regardless of where this thread leads.<br>
<br><br></div></div>-- <br>Philip Lowman<br>