diff --git a/mlir/lib/Support/CMakeLists.txt b/mlir/lib/Support/CMakeLists.txt --- a/mlir/lib/Support/CMakeLists.txt +++ b/mlir/lib/Support/CMakeLists.txt @@ -17,13 +17,13 @@ ) target_link_libraries(MLIRSupport LLVMSupport ${LLVM_PTHREAD_LIB}) -add_llvm_library(MLIROptMain +add_llvm_library(MLIROptLib MlirOptMain.cpp ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Support ) -target_link_libraries(MLIROptMain +target_link_libraries(MLIROptLib MLIRPass MLIRParser LLVMSupport diff --git a/mlir/tools/mlir-opt/CMakeLists.txt b/mlir/tools/mlir-opt/CMakeLists.txt --- a/mlir/tools/mlir-opt/CMakeLists.txt +++ b/mlir/tools/mlir-opt/CMakeLists.txt @@ -5,16 +5,16 @@ set(LIB_LIBS MLIRAnalysis MLIRLLVMIR - MLIROptMain + MLIROptLib MLIRParser MLIRPass MLIRTransforms MLIRSupport ) -add_llvm_library(MLIRMlirOptLib +add_llvm_library(MLIRMlirOptMain mlir-opt.cpp ) -target_link_libraries(MLIRMlirOptLib +target_link_libraries(MLIRMlirOptMain ${LIB_LIBS} ) @@ -43,7 +43,7 @@ MLIRLoopOps MLIRNVVMIR MLIROpenMP - MLIROptMain + MLIROptLib MLIRParser MLIRPass MLIRQuantizerFxpMathConfig @@ -71,7 +71,7 @@ ) set(LIBS MLIRIR - MLIROptMain + MLIROptLib LLVMSupport LLVMCore LLVMAsmParser