Skip to content

Commit f88c7fe

Browse files
[MLIR][cmake][NFC] Update linkage checker for mlir-opt
New CMakeLists.txt for MLIRStandardOpsTransforms was incorrect, but wasn't caught by the check. Differential Revision: https://reviews.llvm.org/D80075
1 parent 52e98f6 commit f88c7fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/cmake/modules/AddMLIR.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function(mlir_check_link_libraries name)
179179
# same symbol might be loaded from 2 separate libraries. This
180180
# often comes from referring to an LLVM library target
181181
# explicitly in target_link_libraries()
182-
message("WARNING: ${l} links LLVM and ${lib}!")
182+
message("WARNING: ${name} links LLVM and ${lib}!")
183183
endif()
184184
endif()
185185
endforeach()

mlir/tools/mlir-opt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ add_llvm_tool(mlir-opt
5252
target_link_libraries(mlir-opt PRIVATE ${LIBS})
5353
llvm_update_compile_flags(mlir-opt)
5454

55-
mlir_check_link_libraries(mlir-opt)
55+
mlir_check_all_link_libraries(mlir-opt)

0 commit comments

Comments
 (0)