[CMake] Patch to FindBoost.cmake.
Andreas Schneider
mail at cynapses.org
Wed Aug 1 02:40:38 EDT 2007
Andreas Pakulat wrote:
> On 31.07.07 15:11:33, Mike Jackson wrote:
>> I had my own home grown FindBoost.cmake that I have been using but I wanted to
>> start using someone elses in the hopes that it would get put into the cmake
>> distribution.. I was looking at the above FindBoost.cmake and the thing that I
>> seemed to have noticed was that my app would end up linking against ALL the
>> boost libraries. I usually only link against 3 of them..
>
> I didn't recheck after Andreas Schneider comitted the change, but now
> you should be able to do
>
> target_link_libraries(XMLText ${BOOST_FOO_LIBRARY} ${BOOST_BAR_LIBRARY})
>
This is documented in at the top of the FindBoost.cmake file now.
http://cmake-modules.googlecode.com/svn/trunk/Modules/Boost/FindBoost.cmake
> instead of Boost_LIBRARIES. Its quite natural IMHO to have
> Boost_LIBRARIES include all boost libs and individual variables for each
> lib. And AFAIK thats how CMake Module's are supposed to work (somebody
> may correct me if I'm wrong here)
>
> Andreas
>
-- andreas
--
http://www.cynapses.org/ - cybernetic synapses
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20070801/38ce403b/signature.pgp
More information about the CMake
mailing list