<div class="gmail_quote">On Sun, May 17, 2009 at 12:16 PM, Philip Lowman <span dir="ltr"><<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On Sun, May 17, 2009 at 12:26 AM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com" target="_blank">rcdailey@gmail.com</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">
Hi,<div><br></div><div>I have built Boost 1.39 on Windows with static libraries, and they are named like so:</div><div><br></div><div>libboost_filesystem-mt.lib</div><div><br></div><div>When I try to do this:</div><div><br>
</div><div>find_package( Boost REQUIRED COMPONENTS filesystem )</div><div><br></div><div>I get an error saying it could not find boost_filesystem. If I rename the above library and remove the 'lib' prefix, so it is just "boost_filesystem-mt.lib", it finds it. Does the FindBoost.cmake module not support the lib prefix on Windows? This might be an inconsistency on Boost's part.</div>
</blockquote></div></div><div><br>Have you set(Boost_USE_STATIC_LIBS ON)?<br><br>This might be related to a post a while back which never was fully resolved involving FindBoost and static libs / dynamic stdlib vs. static libs / static stdlib.<br>
<br>Also, which version of FindBoost are you using?</div></div></blockquote><div><br></div><div>I'm using the one packaged with CMake 2.6.4. Normally, the FindXXX modules will provide any configurable options as variables in the cache. However, in this case, it seems like the FindBoost module checks for Boost_USE_STATIC_LIBS, but does not make it immediately visible in the cache (i.e. the user has to set it themselves). </div>
</div>