When LLVM and MLIR are built as subprojects (via add_subdirectory),
the CMake configuration that indicates where the MLIR libraries are is
not necessarily in the same cmake/ directory as LLVM's configuration.
This patch removes that assumption about where MLIRConfig.cmake is
located.
(As an additional none, the %llvm_lib_dir substitution was never
defined, and so find_package(MLIR) in the build was succeeding for
other reasons.)
Maybe this should be called MLIR_CMAKE_DIR, which is the same variable that is exported by MLIRConfig.cmake? the "CONFIG" in MLIR_CONFIG_CMAKE_DIR I think is intended to imply that it is being implicitly passed to config_file, but that's not happening in this case.