diff --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake --- a/mlir/cmake/modules/AddMLIRPython.cmake +++ b/mlir/cmake/modules/AddMLIRPython.cmake @@ -494,6 +494,7 @@ set_target_properties( ${libname} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${ARG_OUTPUT_DIRECTORY} + ARCHIVE_OUTPUT_DIRECTORY ${ARG_OUTPUT_DIRECTORY} ) endif()