[mlir] Update mlir/CMakeLists.txt to install *.def files
authorKern Handa <kern.handa@gmail.com>
Mon, 6 Jan 2020 09:01:59 +0000 (10:01 +0100)
committerAlex Zinenko <zinenko@google.com>
Mon, 6 Jan 2020 09:02:25 +0000 (10:02 +0100)
This is needed to consume mlir after it has been installed of the source
tree. Without this, consuming mlir results a build error.

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

mlir/CMakeLists.txt

index be76e8d..1f30d68 100644 (file)
@@ -89,6 +89,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
     DESTINATION include
     COMPONENT mlir-headers
     FILES_MATCHING
+    PATTERN "*.def"
     PATTERN "*.h"
     PATTERN "*.inc"
     PATTERN "*.td"