[CMake] Printing the detailed link command call

Rolf Eike Beer eike at sf-mail.de
Tue Dec 27 04:45:06 EST 2011


Am Dienstag, 27. Dezember 2011, 00:35:41 schrieb Aaron Ten Clay:
> On 12/26/2011 6:18 AM, Ceylow wrote:
> > Hello,
> > 
> > I'm having some troubles with a linking step and I would like to see
> > exactly which parameters are given to my compiler when running the
> > Makefile generated by CMake.
> > 
> > Currently it only shows:
> > Linking CXX shared library xxx
> > 
> > which isn't enough for me to find out why I have undefined symbols. I
> > couldn't find any information about this on the web (maybe searching with
> > the wrong words but...).

> Try using 'make VERBOSE=1' instead of 'make', this will cause the
> command lines to be displayed just before execution.

Yes, but that doesn't help him as the linker commandline is hidden in some 
link.txt somewhere in CMakeFiles directory. So based on what you find out from 
the make you need to find the correct link.txt and look into it to find out the 
actual linker commandline.

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111227/078a69d2/attachment.pgp>


More information about the CMake mailing list