mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[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. llvm-svn: 242120
This commit is contained in:
parent
6033cde4ab
commit
07289582f7
@ -696,6 +696,9 @@ macro(add_llvm_external_project name)
|
|||||||
endif()
|
endif()
|
||||||
if(NOT LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR)
|
if(NOT LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR)
|
||||||
set(LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${add_llvm_external_dir}")
|
set(LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${add_llvm_external_dir}")
|
||||||
|
else()
|
||||||
|
set(LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR
|
||||||
|
CACHE PATH "Path to ${name} source directory")
|
||||||
endif()
|
endif()
|
||||||
if (EXISTS ${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR}/CMakeLists.txt)
|
if (EXISTS ${LLVM_EXTERNAL_${nameUPPER}_SOURCE_DIR}/CMakeLists.txt)
|
||||||
option(LLVM_EXTERNAL_${nameUPPER}_BUILD
|
option(LLVM_EXTERNAL_${nameUPPER}_BUILD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user