Mike Jackson wrote: Hi Mike,
> Looks pretty good but what if I only need to link against one library > from Boost? looking at that script it looks as though I will end up > linking against all of them? Then you haven't really looked at the code. ${BOOST_LIBARIES} is the variable which holds all found boost libraries. If you need a special one. if (BOOST_SERIALIZATION_FOUND) target_link_libraries(foo ${BOOST_SERIALIZATION_LIBRARY}) else (BOOST_SERIALIZATION_FOUND) message(FATAL_ERROR "boost serialization not found") endif (BOOST_SERIALIZATION_FOUND) > > Maybe we can take some of the code from my rewrite and incorporate it > into yours? > I have attached my files. The shell script will only generate part of > the final CMake file at the moment. A bash script which creates a cmake file isn't a solution. CMake should look for libraries not a bash script!!! -- andreas > > > -- Mike Jackson Senior Research Engineer > Innovative Management & Technology Services > > > On Dec 27, 2006, at 6:21 PM, Andreas Schneider wrote: > >> Mike Jackson wrote: >>> What is the best way to submit an enhancement patch for the >>> FindBoost.cmake file? I have added some CMake code so that you can use >>> the Boost Libraries kinda like the Qt.. for example in your own >>> CMakeLists.txt file if I only wanted to use the Program_Options library >>> from boost: >> Hi Mike, >> >> I have rewritten the FindBoost.cmake from scratch. It looks like it >> works now on all major plattforms (Linux flavours, OSX, Windoze). >> >> Maybe you want to test it. >> >> http://dev.openwengo.org/trac/openwengo/trac.cgi/browser/owbuild/trunk/owbuild/FindBoost.cmake >> >> >> >> I will submit it to CMake as soon as it is perfect ;) >> >> >> -- andreas >> >> --http://www.cynapses.org/ - cybernetic synapses >> >> > -- http://www.cynapses.org/ - cybernetic synapses
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake