CMake: Fix Windows build with Clang/LLVM 17.
commit0570308ddd9c0e39e85597ebc0e31d4fc81d436f
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 27 Sep 2023 16:54:35 +0000 (27 19:54 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 27 Sep 2023 17:49:46 +0000 (27 20:49 +0300)
treedef3228e05a673786802dd3d099103ff93b268ad
parent5a9af95f85a7e5d4f9c10cb8cf737651a921f1d1
CMake: Fix Windows build with Clang/LLVM 17.

llvm-windres 17.0.0 has more accurate emulation of GNU windres, so
the hack for GNU windres must now be used with llvm-windres too.

LLVM 16.0.6 has the old behavior and there likely won't be more
16.x releases. So we can simply check for >= 17.0.0.

See also:
https://github.com/llvm/llvm-project/commit/2bcc0fdc58a220cb9921b47ec8a32c85f2511a47
CMakeLists.txt