File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 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)
99 set (LLVM_PATH ${LLVM_PATH} CACHE PATH "Path to LLVM source tree" )
1010 set (LLVM_MAIN_SRC_DIR ${LLVM_PATH} )
1111 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 ()
1215 elseif (LLVM_CONFIG_PATH)
1316 message (STATUS "Found LLVM_CONFIG_PATH as ${LLVM_CONFIG_PATH} " )
1417 set (LIBCXX_USING_INSTALLED_LLVM 1)
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ macro(find_llvm_parts)
99 set (LLVM_PATH ${LLVM_PATH} CACHE PATH "Path to LLVM source tree" )
1010 set (LLVM_MAIN_SRC_DIR ${LLVM_PATH} )
1111 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 ()
1215 elseif (LLVM_CONFIG_PATH)
1316 message (STATUS "Found LLVM_CONFIG_PATH as ${LLVM_CONFIG_PATH} " )
1417 set (LIBCXXABI_USING_INSTALLED_LLVM 1)
You can’t perform that action at this time.
0 commit comments