<p>Add system to the list of components. FindBoost should silently omit it on older versions of boost w/o a system library. At least I think.</p>
<p>Sorry for brief messages, typing on mobile :)</p>
<p><blockquote type="cite">On Nov 2, 2009 11:30 AM, "Mathieu Malaterre" <<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>> wrote:<br><br>I can reproduce with CMake / CVS.<br>
<p><font color="#500050">
FIND_PACKAGE ( Boost COMPONENTS filesystem )
</font></p>ADD_LIBRARY( bla SHARED bla_use_filesystem.cxx)<br>
TARGET_LINK_LIBRARIES( bla ${Boost_LIBRARIES} )<br>
<br>
-><br>
<br>
CMakeFiles/Csm.dir/Common/csmPathSet.cc.o: In function<br>
`__static_initialization_and_destruction_0':<br>
/usr/include/boost/system/error_code.hpp:205: undefined reference to<br>
`boost::system::get_system_category()'<br>
/usr/include/boost/system/error_code.hpp:206: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:211: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:212: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:213: undefined reference to<br>
`boost::system::get_system_category()'<br>
CMakeFiles/Csm.dir/IO/csmGraphLoader.cc.o: In function<br>
`__static_initialization_and_destruction_0':<br>
/usr/include/boost/system/error_code.hpp:205: undefined reference to<br>
`boost::system::get_system_category()'<br>
/usr/include/boost/system/error_code.hpp:206: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:211: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:212: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:213: undefined reference to<br>
`boost::system::get_system_category()'<br>
CMakeFiles/Csm.dir/IO/csmChessBoardLoader.cc.o: In function<br>
`__static_initialization_and_destruction_0':<br>
/usr/include/boost/system/error_code.hpp:205: undefined reference to<br>
`boost::system::get_system_category()'<br>
/usr/include/boost/system/error_code.hpp:206: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:211: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:212: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:213: undefined reference to<br>
`boost::system::get_system_category()'<br>
CMakeFiles/Csm.dir/IO/csmModelLoader.cc.o: In function<br>
`__static_initialization_and_destruction_0':<br>
/usr/include/boost/system/error_code.hpp:205: undefined reference to<br>
`boost::system::get_system_category()'<br>
/usr/include/boost/system/error_code.hpp:206: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:211: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:212: undefined reference to<br>
`boost::system::get_generic_category()'<br>
/usr/include/boost/system/error_code.hpp:213: undefined reference to<br>
`boost::system::get_system_category()'<br>
<br>
<br>
What should have I been writing instead ?<br>
<br>
Thanks !<br>
<p><font color="#500050">
On Mon, Nov 2, 2009 at 4:41 PM, Philip Lowman <<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>> wrote:
> Which FindBoost are you u...</font></p>--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></p>