[MLIR][cmake][NFC] Update linkage checker for mlir-opt
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Sun, 17 May 2020 05:46:57 +0000 (22:46 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Sun, 17 May 2020 20:46:52 +0000 (13:46 -0700)
New CMakeLists.txt for MLIRStandardOpsTransforms was incorrect, but wasn't
caught by the check.

Differential Revision: https://reviews.llvm.org/D80075

mlir/cmake/modules/AddMLIR.cmake
mlir/tools/mlir-opt/CMakeLists.txt

index b07158b..c6ef468 100644 (file)
@@ -179,7 +179,7 @@ function(mlir_check_link_libraries name)
           # same symbol might be loaded from 2 separate libraries.  This
           # often comes from referring to an LLVM library target
           # explicitly in target_link_libraries()
-          message("WARNING: ${l} links LLVM and ${lib}!")
+          message("WARNING: ${name} links LLVM and ${lib}!")
         endif()
       endif()
     endforeach()
index 46e7ea6..3e8ed0e 100644 (file)
@@ -52,4 +52,4 @@ add_llvm_tool(mlir-opt
 target_link_libraries(mlir-opt PRIVATE ${LIBS})
 llvm_update_compile_flags(mlir-opt)
 
-mlir_check_link_libraries(mlir-opt)
+mlir_check_all_link_libraries(mlir-opt)