[Mlir-commits] [mlir] efa7084 - [MLIR][cmake] use LINK_LIBS PUBLIC for MLIRStandardOpsTransforms

Stephen Neuendorffer llvmlistbot at llvm.org
Sat May 16 22:45:26 PDT 2020


Author: Stephen Neuendorffer
Date: 2020-05-16T22:45:14-07:00
New Revision: efa70843aa711802d57d1600d705a5bb51b4c740

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

LOG: [MLIR][cmake] use LINK_LIBS PUBLIC for MLIRStandardOpsTransforms

Without this LLVM_LINK_LLVM_DYLIB is broken

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

Added: 
    

Modified: 
    mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt b/mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt
index 614f30f22abf..43eb3210c3b2 100644
--- a/mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt
+++ b/mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt
@@ -7,9 +7,8 @@ add_mlir_dialect_library(MLIRStandardOpsTransforms
 
   DEPENDS
   MLIRStandardTransformsIncGen
-  )
-target_link_libraries(MLIRStandardOpsTransforms
-  PUBLIC
+
+  LINK_LIBS PUBLIC
   MLIRIR
   MLIRPass
   MLIRStandardOps


        


More information about the Mlir-commits mailing list