diff --git a/mlir/lib/Conversion/AVX512ToLLVM/CMakeLists.txt b/mlir/lib/Conversion/AVX512ToLLVM/CMakeLists.txt --- a/mlir/lib/Conversion/AVX512ToLLVM/CMakeLists.txt +++ b/mlir/lib/Conversion/AVX512ToLLVM/CMakeLists.txt @@ -8,7 +8,8 @@ MLIRConversionPassIncGen ) -set(LIBS +target_link_libraries(MLIRAVX512ToLLVM + PUBLIC MLIRAVX512 MLIRLLVMAVX512 MLIRLLVMIR @@ -17,6 +18,3 @@ LLVMCore LLVMSupport ) - -add_dependencies(MLIRAVX512ToLLVM ${LIBS}) -target_link_libraries(MLIRAVX512ToLLVM PUBLIC ${LIBS}) diff --git a/mlir/lib/Conversion/LinalgToLLVM/CMakeLists.txt b/mlir/lib/Conversion/LinalgToLLVM/CMakeLists.txt --- a/mlir/lib/Conversion/LinalgToLLVM/CMakeLists.txt +++ b/mlir/lib/Conversion/LinalgToLLVM/CMakeLists.txt @@ -7,7 +7,9 @@ DEPENDS MLIRConversionPassIncGen ) -set(LIBS + +target_link_libraries(MLIRLinalgToLLVM + PUBLIC MLIRAffineToStandard MLIREDSC MLIRIR @@ -20,8 +22,3 @@ LLVMCore LLVMSupport ) - -add_dependencies(MLIRLinalgToLLVM ${LIBS}) -target_link_libraries(MLIRLinalgToLLVM - PUBLIC - ${LIBS}) diff --git a/mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt b/mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt --- a/mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt +++ b/mlir/lib/Conversion/VectorToLLVM/CMakeLists.txt @@ -7,7 +7,9 @@ DEPENDS MLIRConversionPassIncGen ) -set(LIBS + +target_link_libraries(MLIRVectorToLLVM + PUBLIC MLIRLLVMIR MLIRStandardToLLVM MLIRVector @@ -15,8 +17,3 @@ LLVMCore LLVMSupport ) - -add_dependencies(MLIRVectorToLLVM ${LIBS}) -target_link_libraries(MLIRVectorToLLVM - PUBLIC - ${LIBS}) diff --git a/mlir/lib/Conversion/VectorToLoops/CMakeLists.txt b/mlir/lib/Conversion/VectorToLoops/CMakeLists.txt --- a/mlir/lib/Conversion/VectorToLoops/CMakeLists.txt +++ b/mlir/lib/Conversion/VectorToLoops/CMakeLists.txt @@ -4,7 +4,9 @@ ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/VectorToLoops ) -set(LIBS + +target_link_libraries(MLIRVectorToLoops + PUBLIC MLIREDSC MLIRAffineEDSC MLIRLLVMIR @@ -12,8 +14,3 @@ LLVMCore LLVMSupport ) - -add_dependencies(MLIRVectorToLoops ${LIBS}) -target_link_libraries(MLIRVectorToLoops - PUBLIC - ${LIBS}) diff --git a/mlir/lib/EDSC/CMakeLists.txt b/mlir/lib/EDSC/CMakeLists.txt --- a/mlir/lib/EDSC/CMakeLists.txt +++ b/mlir/lib/EDSC/CMakeLists.txt @@ -22,7 +22,6 @@ ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/EDSC ) -add_dependencies(MLIREDSCInterface MLIRIR) target_link_libraries(MLIREDSCInterface PUBLIC MLIRIR