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. Repository: rL LLVM http://reviews.llvm.org/D15067 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits