<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/82915>82915</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Help: Error reported for a thousand times, literally: IMPORTED_IMPLIB not set for imported target
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Stehsaer
      </td>
    </tr>
</table>

<pre>
    ## Behavior
1. Configure LLVM with cmake
2. `Configuring done (90.7s)` is reported
3. Reports error
```
CMake Error in CMakeLists.txt:
IMPORTED_IMPLIB not set for imported target "zstd::libzstd_shared"
configuration "Release".
```
for **A THOUSAND TIMES**, literally
4. Reports `Generating done (35.3s)`, then reports `CMake Generate step failed.  Build files cannot be regenerated correctly.`

## Additional Info
### Command args
```bat
C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli "-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra" -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_USE_LINKER=lld -DCLANG_ENABLE_CLANGD=1 -DLLVM_HOST_TRIPLE=x86_64 -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_TOOLCHAIN_FILE:STRING=D:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET:STRING=x64-windows -DCMAKE_C_COMPILER:FILEPATH=C:\Users\Lenovo\mingw64\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\Users\Lenovo\mingw64\bin\g++.exe -SE:/git-proj/llvm-project-release-18.x/llvm -Be:/git-proj/llvm-project-release-18.x/build -G "MinGW Makefiles"
```
### System Info
Windows 11 Professional 64-bit, x86_64 arch cpu
### Weird thing
The codebase is modified, but only 2 source files of `clangd` sub-project. No CMake-related file was modified. It could be configured successfully 2 weeks ago, but now it is generating errors. I don't know why and feel confused.
### Full Log
[log.txt](https://github.com/llvm/llvm-project/files/14395999/log.txt)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVV1vqzgQ_TXOywhE7JCGhzwQIG32kg8l9N7uU2TAAW8dHNmmaffXrwwk7Vb7crVS1dZ4znycGZ-hWvOqYWyO_AXy4xFtTS3V_GBYrSlTo1yWH3OECcIEFqymb1wq5MXIC8cuRLI58apVDNL05xqu3NRQnOkr6y2wC2jq3Yx4U0EpGwYIzwLPfdAIB2jqAdeg2EUqw8oeRlzYdx80MKVu4dDUG366Y7SmrwwSew-8ge6Ycm20a94NImFvtVrvtvssiY-r9S5dLaCRBjQzcLKocx8UDFUVM4Aw_lub0mJJKHhuD0ddU8VKhHHvrxhqoYbLxiL2TDCqGcLY_c80bSCEQ4TDELKn7fMh3MSQrdbJof-KcASCG6aoEB89ZPJZPpp6j6xhNtwX8ojvkoE8Czc1awYGO0TPzIBjoA27wIlywUoXYNFyUcKJC6ahoI3lI2egWDWYl1BIpVhhxId7L2L43Q9BWJbcVk8FrJqT_HpnryN5PtOmBKoq_Y2RnJqhd5ZjP9opWSl6hqXNBvlRlzjyo5w3yI-6OXKTlwRhDI7TSOdKVeO0TatZ6RSCW_qd2A7eMdmEizQ57vbbP5IoOyASF4I2FSKL7q9jpBTaYe9G0c5bj8rC_WOSHY7Z9rh4XqUxIvHLbHq7fT4kx3S1-ZHsEYmFKMGJozTcPN6CdQeLGd8QT9tDdsz2q12aIBK_z6bH6cSi1uGPpI9wzP7cJYiEh2y_2jwiEg_jc7dKXuy8HqPtereyMbbrdbiJD4iEi-02RSTO9s_J3TrbbtPoKVxtjstV-i-_sWUYLzNbN8LLt-LyWiG81IXiF2O_5HYO9Ic27Hw3cDvKwYl_RrsfjwM9Q0HZV-_v04lz5U0pr_qeS3RLeo9IaNPZhdkTIvHQ62fNlO1xyhr5JpEfnXlTXaeTe7uronDZ-ycT0cvL__WI8ALhRe_1kPSMVN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