When having several clang versions installed cmake would default to the last llvm directory in the registry when finding the openmp libraries. Two problems with that are : 1- The registry entry may not exist 2- Even if it exists it may not point to the right folder for the Current compiler. This PR changes the behaviour to look relative to the clang binary to find the openmp libraries. Pull Request: https://projects.blender.org/blender/blender/pulls/125101