[llvm-commits] [PATCH] a cmake patch to make install tree cmake-relocatable

hume npx humeafo at gmail.com
Fri Jun 29 20:33:23 PDT 2012


1. make the installed LLVM package tree relocatable, see problem
http://llvm.org/bugs/show_bug.cgi?id=12157
2. correct the built but uninstalled llvm-cmake usage includes path and
directory path
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.

some limitation notes:
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.

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.

Please review.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120630/643f1347/attachment.html>


More information about the llvm-commits mailing list