We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5c6dc6 commit 57fa6e4Copy full SHA for 57fa6e4
mlir/cmake/modules/AddMLIR.cmake
@@ -718,6 +718,14 @@ function(mlir_check_all_link_libraries name)
718
endif()
719
endfunction(mlir_check_all_link_libraries)
720
721
+# Link target against a list of MLIR libraries. If MLIR_LINK_MLIR_DYLIB is
722
+# enabled, this will link against the MLIR dylib instead of the static
723
+# libraries.
724
+#
725
+# This function should be used instead of target_link_libraries() when linking
726
+# MLIR libraries that are part of the MLIR dylib. For libraries that are not
727
+# part of the dylib (like test libraries), target_link_libraries() should be
728
+# used.
729
function(mlir_target_link_libraries target type)
730
if (TARGET obj.${target})
731
target_link_libraries(obj.${target} ${ARGN})
0 commit comments