From 5d77bd733ee6e0ddd72d5b1864e0f2a25e755774 Mon Sep 17 00:00:00 2001 From: Tres Popp Date: Sat, 6 Jun 2020 10:17:58 +0200 Subject: [PATCH] [mlir] Restructure Shape dialect's CMakeLists. Now targets are only built with files in the same directory. Differential Revision: https://reviews.llvm.org/D81328 --- mlir/lib/Dialect/Shape/CMakeLists.txt | 17 +---------------- mlir/lib/Dialect/Shape/IR/CMakeLists.txt | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 mlir/lib/Dialect/Shape/IR/CMakeLists.txt diff --git a/mlir/lib/Dialect/Shape/CMakeLists.txt b/mlir/lib/Dialect/Shape/CMakeLists.txt index 2af3de896568..f33061b2d87c 100644 --- a/mlir/lib/Dialect/Shape/CMakeLists.txt +++ b/mlir/lib/Dialect/Shape/CMakeLists.txt @@ -1,16 +1 @@ -add_mlir_dialect_library(MLIRShape - IR/Shape.cpp - - ADDITIONAL_HEADER_DIRS - ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Shape - - DEPENDS - MLIRShapeOpsIncGen - - LINK_LIBS PUBLIC - MLIRControlFlowInterfaces - MLIRDialect - MLIRInferTypeOpInterface - MLIRIR - MLIRSideEffectInterfaces - ) +add_subdirectory(IR) diff --git a/mlir/lib/Dialect/Shape/IR/CMakeLists.txt b/mlir/lib/Dialect/Shape/IR/CMakeLists.txt new file mode 100644 index 000000000000..da6c04524317 --- /dev/null +++ b/mlir/lib/Dialect/Shape/IR/CMakeLists.txt @@ -0,0 +1,16 @@ +add_mlir_dialect_library(MLIRShape + Shape.cpp + + ADDITIONAL_HEADER_DIRS + ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Shape + + DEPENDS + MLIRShapeOpsIncGen + + LINK_LIBS PUBLIC + MLIRControlFlowInterfaces + MLIRDialect + MLIRInferTypeOpInterface + MLIRIR + MLIRSideEffectInterfaces + )