[CMake] Problem with shared library and def file

s.bedouet at voila.fr s.bedouet at voila.fr
Fri Oct 31 08:20:53 EDT 2008


Hi,
I would like to generate a shared library by using a .def file for export symbols.
The generated makefile does not include def file :
ADD_LIBRARY(bar SHARED File1.c File2.c ${CMAKE_CURRENT_SOURCE_DIR}/bar.DEF)
--> 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 File1.obj File2.obj 
How can I fix the problem please ?
Regards, 
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/cb701be5/attachment.htm>


More information about the CMake mailing list