The flang(f18) developers desire a way to build llvm and mlir separately for installation and then build the flang front-end out of tree. This patch adds some cmake infrastructure to allow that development environment to behave correctly.
Nice, seems to match what clang does here too so that's good to keep it in sync
Cant this be removed now?
Can this be removed now?
I was going to comment "What does clang do?" and then I saw they have this exact same comment ;-)
Nit: could you indent these to show the nesting?
Same re indent
Leftover from testing?
Could you add a comment for this section?
Possibly. We can give it a try.
This was leftover from cobbling things together from other LLVM projects. Other projects seem to setup this XXXConfig.cmake file, but I found it wasn't needed here.
We can remove these commented out lines, if you prefer. I left them with the chance someone who knew CMake better had good reasons to build out an MLIRConfig.cmake rule.
I can give it a shot.