[PATCH] D33299: [Polly][CMake] Use the CMake Package instead of llvm-config in out-of-tree builds
Philip Pfaffe via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 08:58:15 PDT 2017
philip.pfaffe added a comment.
In https://reviews.llvm.org/D33299#761863, @Meinersbur wrote:
> How do I specify which LLVM root to take? Setting `CMAKE_PREFIX_PATH` seems to work, but is it the intended way to do?
I'd like to amend my previous response to this: Setting `CMAKE_PREFIX_PATH` is in fact the more //general// way to do this. While setting `package_DIR` is guaranteed to work universally for `find_package(CONFIG)`, it is not mandatory for find-modules (in current versions of CMake).
https://reviews.llvm.org/D33299
More information about the llvm-commits
mailing list