I'm not sure what the problem is exactly, but I've seen that kind of error message before so I think it's just a configuration problem. What version of CMake are you running?<br><br><div class="gmail_quote">On Sun, May 23, 2010 at 11:38 AM, Clark Gaebel <span dir="ltr"><<a href="http://cg.wowus.cg">cg.wowus.cg</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yeah. Sorry, in my effort to remove the extra cruft I messed that up.<br>
Just image they're matching :)<br>
<div class="im"><br>
On 05/23/10 11:36, Philip Lowman wrote:<br>
> On Sun, May 23, 2010 at 10:31 AM, Clark Gaebel <<a href="http://cg.wowus.cg" target="_blank">cg.wowus.cg</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>>wrote:<br>
><br>
><br>
>> When I link Boost.Thread to my boost_test executable, it gives me<br>
>><br>
>> make[2]: *** No rule to make target `/usr/lib64/libboost_thread-mt.so', needed by `gogo/test/test_boost'. Stop.<br>
>><br>
>> when I make it. Here's the offending CMake code, what am I doing wrong?<br>
>><br>
</div>>> add_executable(test_boost test_boost.cpp)<br>
>> add_test(test_boost test_boost)<br>
<div class="im">>> # Boost auto-links for MSVC, so we exclude it.if(CMAKE_COMPILER_IS_GNUCXX)<br>
>> target_link_libraries(test_boost #LINK_INTERFACE_LIBRARIES<br>
>> ${Boost_THREAD_LIBRARY}<br>
>> )<br>
>> endif()<br>
>><br>
>><br>
> Don't you want:<br>
> target_link_libraries(boost_test ${Boost_THREAD_LIBRARY})<br>
> instead of "test_boost"?<br>
><br>
><br>
<br>
--<br>
</div>Regards,<br>
<font color="#888888">-Clark<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Philip Lowman<br>