Fix MLIR Python CMake bug causing duplicate sources target.
authorStella Laurenzo <stellaraccident@gmail.com>
Mon, 4 Jul 2022 14:06:16 +0000 (07:06 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Mon, 4 Jul 2022 14:07:53 +0000 (07:07 -0700)
commitaa78c5298ea37f2ca8150dc0a1c880be7ec438f4
treec718d3ee3000c8278b36d9d1d9ffe505529c8375
parentf93cd56262d1db6e00acf81b5fa4aff6c837a07b
Fix MLIR Python CMake bug causing duplicate sources target.

The refactor in https://reviews.llvm.org/D128230 introduced a new target and the name is not scoped properly, leading to name collisions on larger projects. It is done properly on the target just below, so applying the same pattern here fixes the issue.
mlir/cmake/modules/AddMLIRPython.cmake