[CMake] Replacing -L with -l
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Jun 9 06:13:09 EDT 2006
> Von: Jorgen Bodde <solidstl at xs4all.nl>
>
> Hi all,
>
> Is there any feature in CMake (Linux / Suse 10) that replaces e.g.
>
> /home/jorg/src/scintilla/lib/libscintilla.a
>
> in TARGET_LINK_LIBRARIES with
>
> -L/home/jorg/src/scintilla/lib/ and -lscintilla ?
Yes.
> If so how can I disable this? The reason is that if the latter notation
> is used, and a scrintilla.so is found before a libscintilla.a it takes
> the wrong one. I would like it to have the first notation towards GCC.
> This has given me headaches as it also took the wrong version of
> wxWidgets all the time instead of the .a files I pointed out.
Please have a look at the list archive, this has been asked several times. IIRC this is not really possible in a portable way. But I may be wrong.
Alex
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
More information about the CMake
mailing list