[CMake] Link directories order
Bill Hoffman
bill.hoffman at kitware.com
Tue Nov 6 17:41:55 EST 2007
Renaud Detry wrote:
>
> As a result, Demo is linked against an obsolete installed version of
> Hello, instead of the local fresh one.
>
> Note that /tmp/lib was empty when I ran cmake.
>
> [detryr at MacBook-Pro] $ export LDFLAGS=-L/tmp/lib
>
OK, CMake does not know what you are doing here. It is treating LDFLAGS
like some linker flag. The idea was something like -64 or some other
linker specific flag for a platform. If you inject directories into the
link line, you are sort of out of luck. Why are you doing it this way?
-Bill
More information about the CMake
mailing list