<P>Hi,</P>
<P>I have troubles with CMAKE_LINKER which is defined in the GUI.</P>
<P>Here is my settings :</P>
<P>CMAKE_C_COMPILER = C<FONT size=2>:/MinGW_3.1.0/bin/gcc.exe</FONT></P>
<P><FONT size=2>CMAKE_LINKER = D:/cygwin/bin/gcc.exe</FONT></P>
<P><FONT size=2>(compiler and linker are different)</FONT></P>
<P> </P><FONT size=2><FONT color=#000080 size=2>
<P>I try to generate a .dll by :</P>
<P>ADD_LIBRARY</FONT><FONT size=2>(bar SHARED </FONT><FONT color=#7f0055 size=2>${LIST_FILE_OBJ}</FONT><FONT size=2> </FONT><FONT color=#7f0055 size=2>${CMAKE_CURRENT_SOURCE_DIR}</FONT><FONT size=2>/bar.DEF)</P></FONT>
<P>When I look at build.make, it's the CMAKE_C_COMPILER which is used and not the CMAKE_LINKER :</P><FONT size=2>
<P>cd D:/FOO_Unix/bar && C:/OUTILS/MinGW_3.1.0/bin/gcc.exe -shared -o lib/bar.dll -Wl,--out-implib,lib/libbar.dll.a -Wl,--major-image-version,1,--minor-image-version,2 $(bar_OBJECTS) $(bar_EXTERNAL_OBJECTS) ../foo/foo.a </P></FONT>
<P></FONT> </P>
<P>Any idea ?</P>
<P>Thanks.</P>
<P>Sebastien</P>
<P> </P><br>
<br><hr><A href="http://r.voila.fr/r?ref=signature_mail_voila_pikeo_1&url=http://pikeo.voila.fr">Ne surchargez plus votre boite mail et celles de vos amis ! Invitez les sur votre espace photo ! </A></DIV>