[cmake] Fix incorrect default for LIT_COMMAND, from r283029

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michal Gorny 2016-10-01 10:56:58 +00:00
parent 310d306126
commit c513af9c78

View File

@ -1084,7 +1084,7 @@ function(add_lit_target target comment)
list(APPEND LIT_ARGS --param build_mode=${CMAKE_CFG_INTDIR})
endif ()
if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
set (LIT_COMMAND "${PYTHON_EXECUTABLE} ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py"
set (LIT_COMMAND "${PYTHON_EXECUTABLE};${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py"
CACHE STRING "Command used to spawn llvm-lit")
else()
find_program(LIT_COMMAND NAMES llvm-lit lit.py lit)