[Mlir-commits] [mlir] 5d77bd7 - [mlir] Restructure Shape dialect's CMakeLists.

Tres Popp llvmlistbot at llvm.org
Mon Jun 8 01:07:52 PDT 2020


Author: Tres Popp
Date: 2020-06-08T10:06:38+02:00
New Revision: 5d77bd733ee6e0ddd72d5b1864e0f2a25e755774

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

LOG: [mlir] Restructure Shape dialect's CMakeLists.

Now targets are only built with files in the same directory.

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

Added: 
    mlir/lib/Dialect/Shape/IR/CMakeLists.txt

Modified: 
    mlir/lib/Dialect/Shape/CMakeLists.txt

Removed: 
    


################################################################################
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
+  )


        


More information about the Mlir-commits mailing list