]> git.ipfire.org Git - thirdparty/xz.git/commit
CMake/Windows: Fix when the windres workaround is applied.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Oct 2023 15:55:57 +0000 (18:55 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Oct 2023 16:32:06 +0000 (19:32 +0300)
commitd91cb6e884c73d0b05d7e7d68ad4e6eb29f4b44b
treea06a042b74af2e65d72fb11808507585d4f5b76d
parent01e34aa1171b04f8b28960b1cc6135a903e0c13d
CMake/Windows: Fix when the windres workaround is applied.

CMake doesn't set WIN32 on CYGWIN but the workaround is
probably needed on Cygwin too. Same for MSYS and MSYS2.

The workaround must not be used with Clang that is acting in
MSVC mode. This fixes it by checking for the known environments
that need the workaround instead of using "NOT MSVC".

Thanks to Martin Storsjö.
https://github.com/tukaani-project/xz/commit/0570308ddd9c0e39e85597ebc0e31d4fc81d436f#commitcomment-129098431
CMakeLists.txt