[Mlir-commits] [mlir] 1cff8e8 - [MLIR] LinalgToStandard: use LINK_LIBS rather than target_link_libraries.
Stephen Neuendorffer
llvmlistbot at llvm.org
Fri May 15 14:25:57 PDT 2020
Author: Stephen Neuendorffer
Date: 2020-05-15T14:25:28-07:00
New Revision: 1cff8e8de79f0308536fd78c81055c4452eb5c28
URL: https://github.com/llvm/llvm-project/commit/1cff8e8de79f0308536fd78c81055c4452eb5c28
DIFF: https://github.com/llvm/llvm-project/commit/1cff8e8de79f0308536fd78c81055c4452eb5c28.diff
LOG: [MLIR] LinalgToStandard: use LINK_LIBS rather than target_link_libraries.
Also, missing MLIRTransforms as a dependency. This breaks BUILD_SHARED_LIBS=on
Differential Revision: https://reviews.llvm.org/D80035
Added:
Modified:
mlir/lib/Conversion/LinalgToStandard/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/LinalgToStandard/CMakeLists.txt b/mlir/lib/Conversion/LinalgToStandard/CMakeLists.txt
index ea1161702bce..82a36449323f 100644
--- a/mlir/lib/Conversion/LinalgToStandard/CMakeLists.txt
+++ b/mlir/lib/Conversion/LinalgToStandard/CMakeLists.txt
@@ -6,15 +6,14 @@ add_mlir_conversion_library(MLIRLinalgToStandard
DEPENDS
MLIRConversionPassIncGen
-)
-target_link_libraries(MLIRLinalgToStandard
- PUBLIC
+ LINK_LIBS PUBLIC
MLIREDSC
MLIRIR
MLIRLinalgOps
MLIRPass
MLIRSCF
+ MLIRTransforms
LLVMCore
LLVMSupport
)
More information about the Mlir-commits
mailing list