forked from OSchip/llvm-project
[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:
parent
08d55c5c01
commit
5821047aac
|
@ -494,6 +494,7 @@ function(add_mlir_python_extension libname extname)
|
|||
set_target_properties(
|
||||
${libname} PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${ARG_OUTPUT_DIRECTORY}
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${ARG_OUTPUT_DIRECTORY}
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue