[Cmake] Target-specific Link Flag
Andy Cedilnik
andy.cedilnik at kitware.com
Mon Oct 14 10:21:47 EDT 2002
You can do something like:
TARGET_LINK_LIBRARIES(target -lm -Xlinker -bind_at_load)
The -lm will fix the addition of -l.
Andy
On Fri, 2002-10-11 at 17:42, William A. Hoffman wrote:
> I think you could use that to add flags as well.
> TARGET_LINK_LIBRARIES(target -special-flags )
> I think cmake may just copy things that are not libraries.
> However, it might add a -l, I am not sure.
>
> I assume there is something with OSX that needs a special flag?
More information about the CMake
mailing list