[CMake] DEF files in MinGW

Jesús López jesus.lopez.salvador at gmail.com
Thu May 10 13:13:23 EDT 2007


Hi,

I'm trying to use a hand made .DEF file (with aliases) to link a 
certain DLL with MinGW. I tried this way but with no success:

project(kaka)
add_library(kk SHARED kk.c kk.def)

The generated Makefile didn't pass the DEF file to the linking stage.
¿How can I do this then, if you please? 

Regards, Jesus.

=========

C:\MinGW\bin\gcc.exe    -shared -o libkk.dll 
-Wl,--out-implib,libkk.dll.a 
-Wl,--major-image-version,0,--minor-image-version,0 
"CMakeFiles/kk.dir/kk.obj"

PS: version cmake version 2.4-patch 6



More information about the CMake mailing list