Provide a meaningful diagnostic when LLVM_PATH doesn't point to a directory
llvm-svn: 369312
This commit is contained in:
parent
9f985dd380
commit
5a14c17221
@ -9,6 +9,9 @@ macro(find_llvm_parts)
|
||||
set(LLVM_PATH ${LLVM_PATH} CACHE PATH "Path to LLVM source tree")
|
||||
set(LLVM_MAIN_SRC_DIR ${LLVM_PATH})
|
||||
set(LLVM_CMAKE_PATH "${LLVM_PATH}/cmake/modules")
|
||||
if (NOT IS_DIRECTORY "${LLVM_PATH}")
|
||||
message(FATAL_ERROR "The provided LLVM_PATH (${LLVM_PATH}) is not a valid directory")
|
||||
endif()
|
||||
elseif(LLVM_CONFIG_PATH)
|
||||
message(STATUS "Found LLVM_CONFIG_PATH as ${LLVM_CONFIG_PATH}")
|
||||
set(LIBCXX_USING_INSTALLED_LLVM 1)
|
||||
|
@ -9,6 +9,9 @@ macro(find_llvm_parts)
|
||||
set(LLVM_PATH ${LLVM_PATH} CACHE PATH "Path to LLVM source tree")
|
||||
set(LLVM_MAIN_SRC_DIR ${LLVM_PATH})
|
||||
set(LLVM_CMAKE_PATH "${LLVM_PATH}/cmake/modules")
|
||||
if (NOT IS_DIRECTORY "${LLVM_PATH}")
|
||||
message(FATAL_ERROR "The provided LLVM_PATH (${LLVM_PATH}) is not a valid directory")
|
||||
endif()
|
||||
elseif(LLVM_CONFIG_PATH)
|
||||
message(STATUS "Found LLVM_CONFIG_PATH as ${LLVM_CONFIG_PATH}")
|
||||
set(LIBCXXABI_USING_INSTALLED_LLVM 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user