[CMake] Magical transformation of /path/to/libmylib.so to -lmylib
Andreas Pakulat
apaku at gmx.de
Mon Jul 11 19:00:47 EDT 2011
On 11.07.11 23:34:37, Jens Mueller wrote:
> Hi,
>
> I'm trying to figure out where the path for a found library is changed.
> In my case Curses is found at /usr/lib/libcurses.so. When linking with
> gcc "/usr/lib/libcurses.so" is replaced by "-lcurses" as it is specified
> at http://www.cmake.org/Wiki/CMake_2.6_Notes#Linking_to_System_Libraries.
> Where can I find the code that causes these changes? I looked into
> share/Modules/ at various CMake* files but I'm unable find the code.
IIRC this is in the C++ source code of CMake, there was recently a
discussion about this on the list, but I can't recall the topic right
now.
Andreas
More information about the CMake
mailing list