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&view=markup">http://public.kitware.com/cgi-bin/viewcvs.cgi/CMake/ExtractBoostVersion.cmake?rev=1.1&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'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> <<a href="mailto:imikejackson@gmail.com">imikejackson@gmail.com</a>> 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>> Rodolfo Lima wrote:<br>>> Andreas Schneider escreveu:<br>>><br>>>> For much better FindBoost.cmake
module take a look at<br>>><br>>> I see that there's no way to specify which version you might need.<br>>> Yes,<br>>> you could check BOOST_VERSION *after* FindBoost returns, but this<br>>> don't
<br>>> cope with the situation when you have more than one version installed<br>>> (1.33 and 1.34.1, for instance).<br>><br>> I'm open for patches. An idea would be to search for the boost<br>> version.cpp
and<br>> get the version from there.<br>><br>> Boost is a monster :)<br>><br>>><br>>> Regards,<br>>> rod<br>><br>> -- andreas<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>>>
<br>><br>> --<br>> <a href="http://www.cynapses.org/">http://www.cynapses.org/</a> - cybernetic synapses<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><br>--<br>Mike Jackson Senior Research Engineer<br>Innovative Management & 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>