[CMake] Link directories order
Bill Hoffman
bill.hoffman at kitware.com
Tue Nov 6 12:40:22 EST 2007
Renaud Detry wrote:
>> Did you build it using ADD_LIBRARY?
>> If yes:
>> PROJECT(HELLO)
>> ADD_LIBRARY(Hello foo.c)
>> ADD_EXECUTABLE(HelloBin bar.c)
>> TARGET_LINK_LIBRARIES(HelloBin Hello)
>
> This is exactly what I have.
>
>> ADD_LIBRARY defines the TARGET "Hello" in the above lines. That should
>> link to the local libHello even if you have another version in the
>> system.
>
> This is what I thought, too. Unfortunately it doesn't.
>
This sounds like a bug. Can you send the output of make VERBOSE=1?
-Bill
More information about the CMake
mailing list