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

    <tr>
        <th>Summary</th>
        <td>
            [compiler-rt][windows][arm64] cmake errors when trying to  build with COMPILER_RT_INCLUDE_TESTS=TRUE 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Errors:
```
CMake Error at cmake/modules/AddLLVM.cmake:1962 (add_dependencies):
  The dependency target "cfi" of target "check-all" does not exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:2002 (add_lit_target)
  CMakeLists.txt:1255 (umbrella_lit_testsuite_end)


CMake Error at CMakeLists.txt:1261 (add_dependencies):
  The dependency target "cfi" of target "test-depends" does not exist.


CMake Error at D:/projects/llvm-project/compiler-rt/test/CMakeLists.txt:122 (add_dependencies):
  The dependency target "cfi" of target "compiler-rt-test-depends" does not
  exist.


CMake Error at cmake/modules/AddLLVM.cmake:1962 (add_dependencies):
  The dependency target "cfi" of target "check-compiler-rt" does not exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:2002 (add_lit_target)
 D:/projects/llvm-project/compiler-rt/test/CMakeLists.txt:124 (umbrella_lit_testsuite_end)


CMake Error at cmake/modules/AddLLVM.cmake:1962 (add_dependencies):
  The dependency target "cfi" of target "check-cfi" does not exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:2028 (add_lit_target)
 D:/projects/llvm-project/compiler-rt/test/cfi/CMakeLists.txt:90 (add_lit_testsuite)


CMake Error at cmake/modules/AddLLVM.cmake:1962 (add_dependencies):
  The dependency target "cfi" of target "check-cfi-and-supported" does not
 exist.
Call Stack (most recent call first):
 D:/projects/llvm-project/compiler-rt/test/cfi/CMakeLists.txt:94 (add_lit_target)
```

cmake command:

```
cmake -G Ninja -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe -DCMAKE_LINKER=lld-link.exe -DCOMPILER_RT_BUILD_SANITIZERS=ON -DCOMPILER_RT_SANITIZERS_TO_BUILD="asan" -DLLVM_DEFAULT_TARGET_TRIPLE="aarch64-pc-windows-msvc" -S llvm -DLLVM_ENABLE_PROJECTS="clang;compiler-rt" -B ..\build-compiler-rt -DCMAKE_BUILD_TYPE=Debug -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_ENABLE_PDB=ON -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_INSTALL_PREFIX="D:\\projects\\llvm_install" -DCMAKE_C_FLAGS="--target=aarch64-pc-windows-m
svc" -DCMAKE_CXX_FLAGS="--target=aarch64-pc-windows-msvc" -DCOMPILER_RT_INCLUDE_TESTS=TRUE
```


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVl1v4jgU_TXmxQoKTsjAQx4CCVV2UkCQrrrzEjm2A546CYqdabu_fmUnfLTDtCNNtTMSQjL385xzfTGWku8qxnwwnoFxOMCt2teNX-Dm37oSg7ymz37UNHUjgRMAOwR2ADy7_5jj_BY_MGh8IFaQlPiBAbQoa9oKJgFaBJQmyd-3w87iBKOphyBAE0xpRtmBVZRVhGvX6akGhOmewZP1GSrc7JiCACFScIAQrIvL3_aMPFhYCG2hNZOwqhVkT1yqYd8lFgJuFSYPunRZSwUbRlilINGWgjdSvWzgfSDItk9ABFdZ14_O0qcw1CRcKjlUT0pDR-OxjmjLvGFC4C6MSSVbrljGKnqKvvx-RfGVtN7ogxnVTVmdt_whqW_0GOrCaHFo6q-MKM2eEN9Kqz8DtCB1eeCCNVajT7ocQIsryD58VM51rR-BPCb-Say_ceRfsPgHjf6Hye_--nX5nfJ0lv9RFjT5eFkMiu_FmdovSh1l-fMlsXBFLdkeDnWjGL1y8X9Jpo_l2H1Dzld_xN23IRCSuixxRc__2dcCOlf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