[MLIR][cmake] Remove redundant add_dependencies()

Libraries declared as target_link_libraries() do not also need
to be declared as dependencies using add_dependencies().

Differential Revision: https://reviews.llvm.org/D78320
This commit is contained in:
Stephen Neuendorffer 2020-04-16 11:52:05 -07:00
parent c2171457e2
commit 314f00a034
5 changed files with 11 additions and 23 deletions

View File

@ -8,7 +8,8 @@ add_mlir_conversion_library(MLIRAVX512ToLLVM
MLIRConversionPassIncGen
)
set(LIBS
target_link_libraries(MLIRAVX512ToLLVM
PUBLIC
MLIRAVX512
MLIRLLVMAVX512
MLIRLLVMIR
@ -17,6 +18,3 @@ set(LIBS
LLVMCore
LLVMSupport
)
add_dependencies(MLIRAVX512ToLLVM ${LIBS})
target_link_libraries(MLIRAVX512ToLLVM PUBLIC ${LIBS})

View File

@ -7,7 +7,9 @@ add_mlir_conversion_library(MLIRLinalgToLLVM
DEPENDS
MLIRConversionPassIncGen
)
set(LIBS
target_link_libraries(MLIRLinalgToLLVM
PUBLIC
MLIRAffineToStandard
MLIREDSC
MLIRIR
@ -20,8 +22,3 @@ set(LIBS
LLVMCore
LLVMSupport
)
add_dependencies(MLIRLinalgToLLVM ${LIBS})
target_link_libraries(MLIRLinalgToLLVM
PUBLIC
${LIBS})

View File

@ -7,7 +7,9 @@ add_mlir_conversion_library(MLIRVectorToLLVM
DEPENDS
MLIRConversionPassIncGen
)
set(LIBS
target_link_libraries(MLIRVectorToLLVM
PUBLIC
MLIRLLVMIR
MLIRStandardToLLVM
MLIRVector
@ -15,8 +17,3 @@ set(LIBS
LLVMCore
LLVMSupport
)
add_dependencies(MLIRVectorToLLVM ${LIBS})
target_link_libraries(MLIRVectorToLLVM
PUBLIC
${LIBS})

View File

@ -4,7 +4,9 @@ add_mlir_conversion_library(MLIRVectorToLoops
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/VectorToLoops
)
set(LIBS
target_link_libraries(MLIRVectorToLoops
PUBLIC
MLIREDSC
MLIRAffineEDSC
MLIRLLVMIR
@ -12,8 +14,3 @@ set(LIBS
LLVMCore
LLVMSupport
)
add_dependencies(MLIRVectorToLoops ${LIBS})
target_link_libraries(MLIRVectorToLoops
PUBLIC
${LIBS})

View File

@ -22,7 +22,6 @@ add_mlir_library(MLIREDSCInterface
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/EDSC
)
add_dependencies(MLIREDSCInterface MLIRIR)
target_link_libraries(MLIREDSCInterface
PUBLIC
MLIRIR