[CMake] Problem with CMAKE_LINKER and add_library

s.bedouet at voila.fr s.bedouet at voila.fr
Fri Oct 31 06:14:09 EDT 2008


Hi,
I have troubles with CMAKE_LINKER which is defined in the GUI.
Here is my settings :
CMAKE_C_COMPILER = C:/MinGW_3.1.0/bin/gcc.exe
CMAKE_LINKER = D:/cygwin/bin/gcc.exe
(compiler and linker are different)

I try to generate a .dll by :
ADD_LIBRARY(bar SHARED ${LIST_FILE_OBJ} ${CMAKE_CURRENT_SOURCE_DIR}/bar.DEF)
When I look at build.make, it's the CMAKE_C_COMPILER which is used and not the CMAKE_LINKER :
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 

Any idea ?
Thanks.
Sebastien

____________________________________________________

Ne surchargez plus votre boite mail et celles de vos amis ! Invitez les sur votre espace photo ! http://pikeo.voila.fr 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081031/4eb0a297/attachment.htm>


More information about the CMake mailing list