[MLIR] Fix linkage for libMLIR.so
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Sun, 17 May 2020 06:01:52 +0000 (23:01 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Sun, 17 May 2020 20:46:52 +0000 (13:46 -0700)
commit37ce8d6ade24b2fb9f332b5ff94c25b40f1fc701
tree473ddc7cea0ad7f13a70d75a67756ad7d05423ec
parentf88c7fe46b37960599e15d373e6ebb0cb2efdc01
[MLIR] Fix linkage for libMLIR.so

Generally:
1) don't use target_link_libraries() and add_mlir_library() on the same target, use LINK_LIBS PUBLIC instead.
2) don't use LINK_LIBS to specify LLVM libraries.  Use LINK_COMPONENTS instead
3) no need to link against LLVMSupport.  We pull it in by default.

Differential Revision: https://reviews.llvm.org/D80076
mlir/lib/Conversion/LinalgToStandard/CMakeLists.txt
mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt
mlir/lib/ExecutionEngine/CMakeLists.txt
mlir/lib/IR/CMakeLists.txt
mlir/lib/Support/CMakeLists.txt