<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/156182>156182</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[MLIR][BUG] Incorrect variable usage in CMakeLists.txt like {$VARIABLE}
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
x12301450
</td>
</tr>
</table>
<pre>
In `lib/Dialect/AMDGPU/Transforms/CMakeLists.txt`, `lib/Dialect/Arith/Transforms/CMakeLists.txt`, `lib/Dialect/ControlFlow/Transforms/CMakeLists.txt` and `lib/Dialect/Quant/Transforms/CMakeLists.txt`, the variable `MLIR_MAIN_INCLUDE_DIR` are all used like following example:
`{$MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/AMDGPU/Transforms`
I think this is a bug and should be fixed as:
`${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/AMDGPU/Transforms`
I will submit a pr to fix this.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysk0FvnDAQhX-NuVhBZsCwHDgsS4iQdqM2anqNbDDgZsAr2yTbf1_BRq0iRUpVVUL44nnz3sxn4ZweZqUKwkvCq0AsfjS2uEQQsyjhLJCm-1k0MyUpQy0J1JUWqFpPoN6fqrsvjwTqb1bMrjd2cgTqw0k8q6N23oX-4knKCBw-rLbaj_9afDCztwZrNK-fSlAxdx9pfF3E7P_KgB8VfRFWC4lqVTodm4en0765f2ruD8fH6vapah62TlZRgUgXpzqK-lnR3iCaVz0PVF3EdEZF4j1h25cykpUEko_VsopAPaG2n448ZVfBhvpRz8_r31HtqKByGbbwbjQLdlQq2uuL6qhw71xAQrLy_7l41YjULXLSngp6ttSbte_mKwy6Iu7yOBeBKqKMpzyNozwPxoIlXaIg37UMdlmWCZ4xyFjc80T1fSJkoAtgwNlu5TKKozyEuAUZJ12-azsZS0YSpiahMUR8mUJjh0A7t6gi4mm0gwCFVOg2zgGukWAl3hbr_Ru5DI4kDLfV_1bw2uP2NtbxEF4RXpaPd4RXtJlbY61q_R8yFicGRfVM30N0BeG66-_7h2ZfHm9JVgWLxWL0_rwtA2oC9aD9uMiwNROBevXwdtycrflxHf0WaQX1LdVLAb8CAAD__0OuK-4">