diff --git a/mlir/test/CAPI/CMakeLists.txt b/mlir/test/CAPI/CMakeLists.txt index 79b61fdef38b4..b9cd63ef7c673 100644 --- a/mlir/test/CAPI/CMakeLists.txt +++ b/mlir/test/CAPI/CMakeLists.txt @@ -12,6 +12,7 @@ function(_add_capi_test_executable name) llvm_update_compile_flags(${name}) if(MLIR_BUILD_MLIR_C_DYLIB) target_link_libraries(${name} PRIVATE + LLVMCore MLIR-C) else() target_link_libraries(${name} PRIVATE