[MLIR] Ensure that out-of-tree users have an mlir-generic-headers target
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Sat, 2 May 2020 05:12:40 +0000 (22:12 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Sat, 2 May 2020 05:19:58 +0000 (22:19 -0700)
Prior change introduces this target, but we need it for out-of-tree users
too

mlir/cmake/modules/MLIRConfig.cmake.in

index da51876..e8822e5 100644 (file)
@@ -32,6 +32,9 @@ endif()
 if(NOT TARGET mlir-headers)
   add_custom_target(mlir-headers)
 endif()
+if(NOT TARGET mlir-generic-headers)
+  add_custom_target(mlir-generic-headers)
+endif()
 if(NOT TARGET mlir-doc)
   add_custom_target(mlir-doc)
 endif()