Skip to content
  • Michal Gorny's avatar
    [cmake] Declare LLVM_CMAKE_PATH for use in subprojects · e22b7f5a
    Michal Gorny authored
    Declare the LLVM_CMAKE_PATH to the source directory location of CMake
    files, in order to make it possible to easily use them in subprojects.
    Such a variable is already declared in most of LLVM projects
    (and inconsistently mixed with direct source tree references), including
    Clang, LLDB, compiler-rt, libcxx... Declaring it inside main LLVM tree
    makes it possible to avoid having to declare fallback values or use
    conditionals in those projects.
    
    It should be noted that in some of the subprojects LLVM_CMAKE_PATH is
    used to reference generated LLVMConfig.cmake file. However, these
    references are conditional to stand-alone builds and explicitly
    including this file is unnecessary in combined builds.
    
    Differential Revision: https://reviews.llvm.org/D25724
    
    llvm-svn: 284581
    e22b7f5a
Loading