[CMake] Magical transformation of /path/to/libmylib.so to -lmylib
Jens Mueller
jens.k.mueller at gmx.de
Mon Jul 11 17:34:37 EDT 2011
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.
Jens
More information about the CMake
mailing list