[CMake] Link directories order

Renaud Detry renaudjdetry at airpost.net
Wed Nov 7 04:46:16 EST 2007


> 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.

Ok.

> If you inject directories into the link line, you are sort of out  
> of luck.  Why are you doing it this way?

What other way could I do it?

- There's no official definition of what should be found in LDFLAGS,
   but most of the software that use LDFLAGS (in particular autotools)
   expect you to put non-standard link directories in there.

- Isn't it the most standard way (in unix) to tell a build system to  
look
   for libraries in non-standard places?

Renaud.



More information about the CMake mailing list