Skip to content

[CMake] Windows: cannot use system libraries on MinGW #391

@carlo-bramini

Description

@carlo-bramini

Into src/submodules there are some thirdy party libraries.
Surely, they are useful when MSVC is set, otherwise you could have some difficulties to link them.
However, if WIN32 is set into CMake, it could not be MSVC but also MINGW.
I'm wondering what you think about letting CMake to find system libraries like zlib, etc also on Win32.
In my opinion, it can be done quite easily by doing few changes into CMakeLists.txt.
For example, CMake could search zlib like UNIX does and then it could fall down to check the presence of the submodule if ZLIB_FOUND was not set.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions