<div><br></div>1. make the installed LLVM package tree relocatable, see problem <a href="http://llvm.org/bugs/show_bug.cgi?id=12157" target="_blank" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">http://llvm.org/bugs/show_bug.cgi?id=12157</a><div>
2. correct the built but uninstalled llvm-cmake usage includes path and directory path</div><div>3. make installed cmake find_package pattern usable without setting two variables CMAKE_PREFIX_PATH and CMAKE_MODDULE_PATH, instead just need to set CMAKE_PREFIX_PATH only.</div>
<div><br></div><div>some limitation notes:</div><div>first, LLVM_TOOLS_BINARY_DIR will not be correct in un-installed built tree if use the GUI generators such as "Visual Studio" because it's in a per-configuration sub-dir, it's not easy and cleanly to address this problem, but for make generators (nmake gmake etc), there should be problem.</div>
<div><br></div><div>second, if use un-installed version, the clients should built using the same class generator such as LLVM(nmake generator) => clients(nmake generator but not Visual studio generator) or vice versa, there are no problems for installed tree usage. however, this make the prior not worked un-installed built tree work in most circumstances.</div>
<div><br></div><div>Please review.</div>