mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 01:56:05 +00:00

llvm_add_tool() currently does not respect the passed project and puts all tools into LLVMExports.cmake. This means that we end up with binaries like mlir-opt in LLVMExports.cmake instead of MLIRTargets.cmake, where they should be. Adjust llvm_add_tool() to take the project into account.
See docs/CMake.html for instructions on how to build LLVM with CMake.