On Sun, May 23, 2010 at 10:31 AM, Clark Gaebel <cg.wowus...@gmail.com>wrote:

>  When I link Boost.Thread to my boost_test executable, it gives me
>
> make[2]: *** No rule to make target `/usr/lib64/libboost_thread-mt.so', 
> needed by `gogo/test/test_boost'.  Stop.
>
> when I make it. Here's the offending CMake code, what am I doing wrong?
>
> add_executable(boost_test boost_test.cpp)
> add_test(boost_test boost_test)
> # Boost auto-links for MSVC, so we exclude it.if(CMAKE_COMPILER_IS_GNUCXX)
>     target_link_libraries(test_boost #LINK_INTERFACE_LIBRARIES
>         ${Boost_THREAD_LIBRARY}
>     )
> endif()
>
> Don't you want:
target_link_libraries(boost_test ${Boost_THREAD_LIBRARY})
instead of "test_boost"?

-- 
Philip Lowman
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to