[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static cmocka library on Windows

On Thursday, 25 May 2017 09:07:23 CEST Martin Fischer wrote:
> Hi there,
> I'm using cmocka on Windows and Linux. When building it on Windows I ran
> into a problem.
> I need a static library as the application under test uses the static C
> runtime. So I set WITH_STATIC_LIBRARY in cmake, generate and build. The
> outcome is a DLL and the expected static library. So far so good. But if
> I wanted to use the DLL for I'd need the import library that is missing
> in this build. The problem seems to be that the import library and the
> static library are both called cmocka.lib. So whatever builds last wins.
> To me it seems to be a good alternative approach to give the static
> library a different name like cmocka-static.lib.
> So is there a special reason for the current behaviour? If not I could
> provide a patch.

Hi Martin!

Please provide a patch. But only change the name on Windows. Leave it as is on 
Unix systems.



Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx