[CMake] Finding MinGW compiler libraries?

Hendrik Sattler post at hendrik-sattler.de
Sun Jul 27 08:09:03 EDT 2008


Am Sonntag, 27. Juli 2008 13:58:06 schrieb Werner Smekal:
> > And what is the reason to find .dll files on Windows when searching for a
> > library file, most likely to link to?
>
> Well, the MinGW compiler doesn't need a foo.a file to link against a
> foo.dll file - if foo.dll was created with MinGW itself. Therefore it
> makes sense. If the foo.dll was compiled with a different compiler (e.g.
> system libraries) this will most likely not work. But how should CMake
> know?

It shouldn't. But doing this is _most_ _likely_ to fail, as most .dll files 
are not created using MinGW. That's fact. So why doing something by default 
that has a success rate of less than 50%? Make it optional and disabled by 
default...

HS

PS: Please to not send replies to me _and_ the list, just to the list is 
completely sufficient. An MUA that understands mailing lists can help here.


More information about the CMake mailing list