diff --git a/src/tool/onnf_opt/CMakeLists.txt b/src/tool/onnf_opt/CMakeLists.txt index 0d0b302..5201ae4 100644 --- a/src/tool/onnf_opt/CMakeLists.txt +++ b/src/tool/onnf_opt/CMakeLists.txt @@ -4,6 +4,6 @@ add_dependencies(onnf-opt gen_krnl_ops) target_include_directories(onnf-opt PRIVATE ${ONNF_SRC_ROOT}) target_include_directories(onnf-opt PRIVATE ${ONNF_BIN_ROOT}) -target_link_libraries(onnf-opt ${MLIRLibs} curses) +target_link_libraries(onnf-opt builder ${MLIRLibs} onnf_transform onnf_shape_inference onnf_lower_frontend curses) whole_archive_link_mlir(onnf-opt ${MLIRWholeArchiveLibs}) -whole_archive_link_onnf(onnf-opt compiler onnf_transform onnf_lower_frontend onnf_shape_inference) \ No newline at end of file +whole_archive_link_onnf(onnf-opt compiler onnf_transform onnf_lower_frontend onnf_shape_inference)