[Lldb-commits] [PATCH] D15067: Design building out of sources

Eugene Zelenko via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 30 13:43:32 PST 2015

Eugene.Zelenko added a comment.

In http://reviews.llvm.org/D15067#298830, @krytarowski wrote:

> In http://reviews.llvm.org/D15067#298701, @Eugene.Zelenko wrote:
> > I build LLVM/Clang with LLVM_ENABLE_WARNINGS=ON, so I'll need to use llvm-config from build directory. I'm not sure how well find_program will work if path to <build directory>/bin will be not added to PATH, so probably will be good idea to allow LLVM_CONFIG to be set in Cmake command line and use find_program only if LLVM_CONFIG is not set.
> This should be already handled by CMake:
>  https://cmake.org/cmake/help/v3.0/command/find_program.html

But it's necessary to pass path from CMake command line argument to find_program after PATHS. Another problem if default OS location (if Clang installed and of old version) will be returned instead of build one.



More information about the lldb-commits mailing list