CMake: Use the new USES_TERMINAL option for test suite targets when available.
llvm-svn: 222181
This commit is contained in:
parent
76f2c77070
commit
a7fb5cf1e2
|
@ -16,6 +16,12 @@ else()
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 3.1.20141117)
|
||||
set(cmake_3_2_USES_TERMINAL)
|
||||
else()
|
||||
set(cmake_3_2_USES_TERMINAL USES_TERMINAL)
|
||||
endif()
|
||||
|
||||
project(LLVM)
|
||||
|
||||
# Add path for custom modules
|
||||
|
|
|
@ -679,6 +679,7 @@ function(add_lit_target target comment)
|
|||
add_custom_target(${target}
|
||||
COMMAND ${LIT_COMMAND} ${ARG_DEFAULT_ARGS}
|
||||
COMMENT "${comment}"
|
||||
${cmake_3_2_USES_TERMINAL}
|
||||
)
|
||||
add_dependencies(${target} ${ARG_DEPENDS})
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue