Make LLVM_ROOT_DIR a cached CMake variable

This commit is contained in:
Jack Andersen 2016-05-22 13:10:21 -10:00
parent 617c121675
commit 612f547988
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@
# We also want an user-specified LLVM_ROOT_DIR to take precedence over the
# system default locations such as /usr/local/bin. Executing find_program()
# multiples times is the approach recommended in the docs.
set(LLVM_ROOT_DIR "" CACHE PATH "Location of LLVM development root")
set(LLVM_FIND_COMPONENTS "")
if(WIN32)
get_filename_component(LLVM_ROOT_DIR [HKEY_LOCAL_MACHINE\\Software\\LLVM\\LLVM] ABSOLUTE)