[MLIR] mlir-opt needs PUBLIC dependence
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Tue, 5 May 2020 19:26:48 +0000 (12:26 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Tue, 5 May 2020 19:39:28 +0000 (12:39 -0700)
We see intermittent build errors on the windows buildbot because
mlir-opt is including Linalg headers which haven't been built yet.
This dependence should be resolved by declaring a PUBLIC dependence
on the Linalg library when building MLIROptMain.

mlir/tools/mlir-opt/CMakeLists.txt

index ca39f37..2cf9023 100644 (file)
@@ -39,7 +39,7 @@ add_mlir_library(MLIRMlirOptMain
 
   EXCLUDE_FROM_LIBMLIR
 
-  LINK_LIBS
+  LINK_LIBS PUBLIC
   ${LIBS}
 
   DEPENDS