<div style="text-align:-webkit-auto"><span style="background-color:rgb(255,255,255);text-align:left">Hi, </span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-weight:bold;text-align:left;white-space:nowrap">Óscar:</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-weight:bold;text-align:left;white-space:nowrap;background-color:rgb(255,255,255)">  nice to hear some voice on this. about </span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px">LLVM_TOOLS_BINARY_DIR, yes, it made the installed version work only, if you'd like the uninstalled version to work, it should be detected as you suggested.</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"><br></span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px">  about </span><font color="#222222" face="arial, sans-serif">LLVM_INSTALL_PREFIX the purpose is to make it really relocatable, eg, when installed under /lib/llvm I just later need to move the installation tree to /lusr/local/lib/llvm without re-run cmake and the time-boring build/install process, and this is especially convinient on Windows. Use </font><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px">CMAKE_CURRENT_LIST_DIR while not the absolute predefined </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif">LLVM_INSTALL_PREFIX</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif"> is just to give the freedom to this, if just installed</span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px"> and not moved, this will work identical to the value original absolute </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif">LLVM_INSTALL_PREFIX</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif"> points.</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">CMAKE_MODULE_PATH should be corrected for installed version, it's still points to the source tree location while not the install tree location, if you removed/moved the source tree after installation, the installed version will not work properly, surely this is not we wanted?</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">as to uninstalled support, I think current script doesn'tsupport the cmake usage properly, If this is needed, some further work should be made. </span></div>