mirror of https://github.com/libAthena/athena.git
Make LLVM_ROOT_DIR a cached CMake variable
This commit is contained in:
parent
617c121675
commit
612f547988
|
@ -27,6 +27,7 @@
|
||||||
# We also want an user-specified LLVM_ROOT_DIR to take precedence over the
|
# 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()
|
# system default locations such as /usr/local/bin. Executing find_program()
|
||||||
# multiples times is the approach recommended in the docs.
|
# multiples times is the approach recommended in the docs.
|
||||||
|
set(LLVM_ROOT_DIR "" CACHE PATH "Location of LLVM development root")
|
||||||
set(LLVM_FIND_COMPONENTS "")
|
set(LLVM_FIND_COMPONENTS "")
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
get_filename_component(LLVM_ROOT_DIR [HKEY_LOCAL_MACHINE\\Software\\LLVM\\LLVM] ABSOLUTE)
|
get_filename_component(LLVM_ROOT_DIR [HKEY_LOCAL_MACHINE\\Software\\LLVM\\LLVM] ABSOLUTE)
|
||||||
|
|
Loading…
Reference in New Issue