[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
This commit is contained in:
John Demme 2021-08-16 19:18:23 -07:00
parent 08d55c5c01
commit 5821047aac
1 changed files with 1 additions and 0 deletions

View File

@ -494,6 +494,7 @@ function(add_mlir_python_extension libname extname)
set_target_properties( set_target_properties(
${libname} PROPERTIES ${libname} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${ARG_OUTPUT_DIRECTORY} RUNTIME_OUTPUT_DIRECTORY ${ARG_OUTPUT_DIRECTORY}
ARCHIVE_OUTPUT_DIRECTORY ${ARG_OUTPUT_DIRECTORY}
) )
endif() endif()