[MLIR] [Python] Fix out-of-tree Windows python bindings
authorJohn Demme <john.demme@microsoft.com>
Tue, 17 Aug 2021 02:18:23 +0000 (19:18 -0700)
committerJohn Demme <john.demme@microsoft.com>
Tue, 17 Aug 2021 02:18:54 +0000 (19:18 -0700)
commit5821047aaca23184ee30fb212bfbbfa25967448b
treed9dde34d19f987a2a1467e53b986b74e1a57b5a8
parent08d55c5c0156a3759d375711771fccfa3e9a79a5
[MLIR] [Python] Fix out-of-tree Windows python bindings

MSVC needs to know where to put the archive (.lib) as well as the runtime
(.dll). If left to the default location, multiple rules to generate the same
file will be produced, creating a Ninja error.

Differential Revision: https://reviews.llvm.org/D108181
mlir/cmake/modules/AddMLIRPython.cmake