[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Static cmocka library on Windows
- Subject: Static cmocka library on Windows
- From: Martin Fischer <martinfischer8@xxxxxxxxxxx>
- Date: Thu, 25 May 2017 09:07:23 +0200
- To: cmocka@xxxxxxxxxxxxxx
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.