CMake: Use the new USES_TERMINAL option for test suite targets when available.

llvm-svn: 222181
This commit is contained in:
Peter Collingbourne 2014-11-17 22:16:15 +00:00
parent 76f2c77070
commit a7fb5cf1e2
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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()