]> git.ipfire.org Git - thirdparty/zstd.git/commit
Disable linker flag detection on MSVC/ClangCL. 3569/head
authorTobias Hieta <tobias@hieta.se>
Wed, 22 Mar 2023 21:13:57 +0000 (22:13 +0100)
committerTobias Hieta <tobias@hieta.se>
Wed, 22 Mar 2023 21:13:57 +0000 (22:13 +0100)
commit979b047114622265b6015a9587434e8229429411
treec72881cd35f0a18127410c08c842c4c3748387c7
parent3e0550ee5279735693b01464ede7cb1ec22fe6b7
Disable linker flag detection on MSVC/ClangCL.

This fixes compilation with clang-cl on Windows. There
is a bug in cmake so that check_linker_flag() doesn't give
the correct result when using link.exe/lld-link.exe.

Details in CMake's gitlab: https://gitlab.kitware.com/cmake/cmake/-/issues/22023

Fixes #3522
build/cmake/CMakeModules/AddZstdCompilationFlags.cmake