Add missing CMake dependency for MLIRTestIR.
authorMahesh Ravishankar <ravishankarm@google.com>
Wed, 11 Dec 2019 20:35:43 +0000 (12:35 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 11 Dec 2019 20:44:42 +0000 (12:44 -0800)
PiperOrigin-RevId: 285039153

mlir/test/lib/IR/CMakeLists.txt

index 4ac6a91..5cb2769 100644 (file)
@@ -7,6 +7,9 @@ add_llvm_library(MLIRTestIR
   )
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../TestDialect)
+add_dependencies(MLIRTestIR
+  MLIRTestDialect
+)
 target_link_libraries(MLIRTestIR
   MLIRPass
   )