See the VTK source file VTK/CMake/ExtractBoostVersion.cmake...<br><br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/CMake/ExtractBoostVersion.cmake?rev=1.1&amp;view=markup">http://public.kitware.com/cgi-bin/viewcvs.cgi/CMake/ExtractBoostVersion.cmake?rev=1.1&amp;view=markup
</a><br><br>...for example CMake script that extracts version number information out of boost/version.hpp using regular expressions -- feel free to incorporate it directly into FindBoost.cmake if you think it&#39;s useful.
<br><br><br>HTH,<br>David Cole<br><br><br><div><span class="gmail_quote">On 1/15/08, <b class="gmail_sendername">Mike Jackson</b> &lt;<a href="mailto:imikejackson@gmail.com">imikejackson@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here is my FindBoost.cmake that I use in my projects. I have tried to<br>include ideas from FindQt4.cmake and allow for setting the version of<br>boost to use, along with static/dynamic/mt/icc/ and all that.<br><br><a href="http://titanium.imts.us/viewvc/Task_7/MXADataModel/Resources/">
http://titanium.imts.us/viewvc/Task_7/MXADataModel/Resources/</a><br>MXAFindBoost.cmake?view=markup<br><br>The code is based on a lot of others work and I am not claiming it is<br>mine but comments are welcome.<br><br>I also have a shell script that can help generate certain repetitive
<br>portions of the code.<br><br>Mie Jackson<br>On Jan 15, 2008, at 8:37 AM, Andreas Schneider wrote:<br><br>&gt; Rodolfo Lima wrote:<br>&gt;&gt; Andreas Schneider escreveu:<br>&gt;&gt;<br>&gt;&gt;&gt; For much better FindBoost.cmake
 module take a look at<br>&gt;&gt;<br>&gt;&gt; I see that there&#39;s no way to specify which version you might need.<br>&gt;&gt; Yes,<br>&gt;&gt; you could check BOOST_VERSION *after* FindBoost returns, but this<br>&gt;&gt; don&#39;t
<br>&gt;&gt; cope with the situation when you have more than one version installed<br>&gt;&gt; (1.33 and 1.34.1, for instance).<br>&gt;<br>&gt; I&#39;m open for patches. An idea would be to search for the boost<br>&gt; version.cpp
 and<br>&gt; get the version from there.<br>&gt;<br>&gt; Boost is a monster :)<br>&gt;<br>&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt; rod<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- andreas<br>&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________
<br>&gt;&gt; CMake mailing list<br>&gt;&gt; <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>&gt;&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>&gt;&gt;
<br>&gt;<br>&gt; --<br>&gt; <a href="http://www.cynapses.org/">http://www.cynapses.org/</a> - cybernetic synapses<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; CMake mailing list<br>&gt; 
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br><br>--<br>Mike Jackson&nbsp;&nbsp; Senior Research Engineer<br>Innovative Management &amp; Technology Services
<br><br><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake
</a><br></blockquote></div><br>