[CMake] need two compilation to achieve success

Michael Jackson mike.jackson at bluequartz.net
Wed Jun 3 16:06:23 EDT 2009



On Jun 3, 2009, at 3:56 PM, Bill Hoffman wrote:

> 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

um.. you are correct (of course  ;-) ).. what was I thinking..

mj


More information about the CMake mailing list