llvm.org GIT mirror llvm / b1e51da
[CMake] Unbreak add_llvm_external_project when external projects are specified. LLVM_EXTERNAL_*_SOURCE_DIR is reset as PATH with set(CACHE PATH). Then the CACHE PATH variable, LLVM_EXTERNAL_*_SOURCE_DIR, is normalized as ${CMAKE_SOURCE_DIR}/${path_var} if ${path_var} is relative. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242120 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 4 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
695695 endif()
696696 if(NOT LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR)
697697 set(LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${add_llvm_external_dir}")
698 else()
699 set(LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR
700 CACHE PATH "Path to ${name} source directory")
698701 endif()
699702 if (EXISTS ${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR}/CMakeLists.txt)
700703 option(LLVM_EXTERNAL_${nameUPPER}_BUILD