File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ macro(find_llvm_parts)
9
9
set (LLVM_PATH ${LLVM_PATH} CACHE PATH "Path to LLVM source tree" )
10
10
set (LLVM_MAIN_SRC_DIR ${LLVM_PATH} )
11
11
set (LLVM_CMAKE_PATH "${LLVM_PATH} /cmake/modules" )
12
+ if (NOT IS_DIRECTORY "${LLVM_PATH} " )
13
+ message (FATAL_ERROR "The provided LLVM_PATH (${LLVM_PATH} ) is not a valid directory" )
14
+ endif ()
12
15
elseif (LLVM_CONFIG_PATH)
13
16
message (STATUS "Found LLVM_CONFIG_PATH as ${LLVM_CONFIG_PATH} " )
14
17
set (LIBCXX_USING_INSTALLED_LLVM 1)
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ macro(find_llvm_parts)
9
9
set (LLVM_PATH ${LLVM_PATH} CACHE PATH "Path to LLVM source tree" )
10
10
set (LLVM_MAIN_SRC_DIR ${LLVM_PATH} )
11
11
set (LLVM_CMAKE_PATH "${LLVM_PATH} /cmake/modules" )
12
+ if (NOT IS_DIRECTORY "${LLVM_PATH} " )
13
+ message (FATAL_ERROR "The provided LLVM_PATH (${LLVM_PATH} ) is not a valid directory" )
14
+ endif ()
12
15
elseif (LLVM_CONFIG_PATH)
13
16
message (STATUS "Found LLVM_CONFIG_PATH as ${LLVM_CONFIG_PATH} " )
14
17
set (LIBCXXABI_USING_INSTALLED_LLVM 1)
You can’t perform that action at this time.
0 commit comments