[Mlir-commits] [mlir] 99c43e3 - [MLIR][Python] fix mlir python cmake script (#95939)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jun 18 23:12:01 PDT 2024


Author: Bimo
Date: 2024-06-19T14:11:58+08:00
New Revision: 99c43e3ce3142a93bbad4f9efeace254d9a8442c

URL: https://github.com/llvm/llvm-project/commit/99c43e3ce3142a93bbad4f9efeace254d9a8442c
DIFF: https://github.com/llvm/llvm-project/commit/99c43e3ce3142a93bbad4f9efeace254d9a8442c.diff

LOG: [MLIR][Python] fix mlir python cmake script (#95939)

Encountered a problem when linking multiple CAPI libs.
The `COMMON_CAPI_LINK_LIBS` should be multi_value_keywords here.

Added: 
    

Modified: 
    mlir/cmake/modules/AddMLIRPython.cmake

Removed: 
    


################################################################################
diff  --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake
index 012380603a4c4..f030798a94ae9 100644
--- a/mlir/cmake/modules/AddMLIRPython.cmake
+++ b/mlir/cmake/modules/AddMLIRPython.cmake
@@ -203,8 +203,8 @@ endfunction()
 function(add_mlir_python_modules name)
   cmake_parse_arguments(ARG
     ""
-    "ROOT_PREFIX;INSTALL_PREFIX;COMMON_CAPI_LINK_LIBS"
-    "DECLARED_SOURCES"
+    "ROOT_PREFIX;INSTALL_PREFIX"
+    "COMMON_CAPI_LINK_LIBS;DECLARED_SOURCES"
     ${ARGN})
   # Helper to process an individual target.
   function(_process_target modules_target sources_target)


        


More information about the Mlir-commits mailing list