Skip to content

Fix wrong library filename (in Windows) - #226

Merged
brarcher merged 2 commits into
libcheck:masterfrom
mikkoi:fix-wrong-library-filename
Oct 20, 2019
Merged

Fix wrong library filename (in Windows)#226
brarcher merged 2 commits into
libcheck:masterfrom
mikkoi:fix-wrong-library-filename

Conversation

@mikkoi

@mikkoi mikkoi commented Oct 20, 2019

Copy link
Copy Markdown
Contributor

To maintain compatibility with the Autotools installation we specifically create both shared and static libraries as that is what Autotools script has been doing. Normally CMake would create the system's native default library type.

In Windows we shall create two library files: "check.lib" and "checkDynamic.lib".
This separation is necessary. In Unix/Linux the files would be libcheck.a and libcheck.so, only separated by the filename suffix. But in Windows all library files end with ".lib", both static and dynamic.

Why we create both static and shared type of library?

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Change from checkStatic to checkDynamic.
Was erroneously "checkStatic".

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
@brarcher
brarcher merged commit 003e225 into libcheck:master Oct 20, 2019
@mikkoi
mikkoi deleted the fix-wrong-library-filename branch October 25, 2019 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants