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

    <tr>
        <th>Summary</th>
        <td>
            mlir is breaking the build with `install TARGETS given target "MLIRSparseTensorEnums" which does not exist.`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            build-problem,
            mlir
      </td>
    </tr>

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

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

<pre>
    Very recent regression, yesterday, with 335f94bfef0e it was working correctly
```

-- Performing Test C_SUPPORTS_WERROR_GLOBAL_CONSTRUCTOR
-- Performing Test C_SUPPORTS_WERROR_GLOBAL_CONSTRUCTOR - Failed
-- Performing Test CXX_SUPPORTS_WERROR_GLOBAL_CONSTRUCTOR
-- Performing Test CXX_SUPPORTS_WERROR_GLOBAL_CONSTRUCTOR - Failed
CMake Error at /build/llvm-toolchain-snapshot-16~++20221019071908+875fd9df76de/mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt:12 (add_library):
  add_library INTERFACE library requires no source arguments.


CMake Error at /build/llvm-toolchain-snapshot-16~++20221019071908+875fd9df76de/mlir/cmake/modules/AddMLIR.cmake:533 (install):
  install TARGETS given target "MLIRSparseTensorEnums" which does not exist.
Call Stack (most recent call first):
  /build/llvm-toolchain-snapshot-16~++20221019071908+875fd9df76de/mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt:17 (add_mlir_library_install)


CMake Error at /build/llvm-toolchain-snapshot-16~++20221019071908+875fd9df76de/mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt:18 (set_property):
  set_property could not find TARGET MLIRSparseTensorEnums.  Perhaps it has
  not yet been created.


-- Performing Test COMPILER_SUPPORTS_WARNING_WEAK_VTABLES
-- Performing Test COMPILER_SUPPORTS_WARNING_WEAK_VTABLES - Failed
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVVFvozgQ_jXkxUpEIBB44IGmtIoubSrC7vUtMngIvhqcs027-fc7JsleWnWl1Xa1exIY7NF8_mbm87iU7JB8BnUgCiroDH52CrTmsnO8BTmANqAYPdjJCzcN8f2gjmdlDbULhBvyQjV5keqJdztSSYUoRhwc99pxUyd0T89xOozjMXkAVUvVWo8C8cliu_n08LDOi8327yzP1_n2drW-Slfbxfp-U-SfFsU6_5AzGZMbygWw76M8Pn6IxA-5v6GxuKNPQDKlpCLUEMe7KXsuGH6FeG7HRkpRNZR3Y93RvW6kGU9DZ5453hU-nut5U3cau3N8I1yI5kHNYlbPQwYI0QquLBIvcbzmVGBd8G-zp0pDAZ2W1rzMcRh4rLg2emK-GMdPpx6SiShjW3RXVGHxY1w-sibkwkCW90WW36SLjJxXFPzbc1QQ6STRslcVEKp2fYva0pNLIfy-JFQt7mGnkvUCNP6ljN2tlvnkaPHTwPdtyLzThgrxOtzTIinS_DYrNmTHn6EjBoMCy9ezQJdpzbq-xT088tLwqiFMDrkwBL5gik8ZWFjAjaHVk922ldqcj19lLTVX2rxm8T9Sx_ysDotyVsL2Ind_pMg_F0tkY9Fgtnsl96DMG6lfWrC79YINpax5x056IO-Wf0Jsi2gwGNsiG6rPgNb7gLopATVUKaAG2Dun4r0Ws757WK6y_KLPpPn98v4W-0361_ZzkV6tss0H3d90qG8NfATJNAzDaRj4XjRiic9iP6Yjw42AxBaAcE1KDGe4BkwDZCjw8cZA_198hpBQr0TSGLPXtlreDT473KsvJ5VsT7o6ywsL-M9RE1zrfjj_QTQLvVGTuH4IgR9U1K1iGk-jsIxcv3TDcA5u6dFgJGgJQidOgEr0hpgsXCkA0T17J-LnKEDPCa5HPPlPrTPPnU_cKopnUEdhPQtqcANn5kKLGZ5YZhOpdiOVDCTLfqfRKAZxfjNSvIh3HcBAAPFpbxqpEn0Qz1hUBaMhomQI5ytrH3GC">