Michael Jackson wrote:
Sorry, that should be:

link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY})


No, this is not needed. This is all taken care of by CMake for internal targets.

add_library(foobar ...)
add_executable(car ...)
target_link_libraries(car foobar) # link_directories should not be needed for this at all.


-Bill
_______________________________________________
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