ROCm / rocMLIR

128 stars 40 forks source link

Setup CMAKE_MODULE_PATH when LLVM_LIBDIR_SUFFIX is used #1647

Closed krzysz00 closed 1 month ago

krzysz00 commented 1 month ago

LLVM_LIBDIR_SUFFIX is used control the install location of 64 bit arches on Fedora and is typlically used by adding the cmd line -DLLVM_LIBDIR_SUFFIX=64

The effect is to change the install location for lib/ to lib64/

When this option is used, the intermediate build locations for llvm and mlir cmake module also need to change.

So append ${LLVM_LIBDIR_SUFFIX} to the setup of the CMAKE_MODULE_PATH

Note to reviewers: This PR is already approved and just needs to be sent through a post-rebase CI