mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
CMake: Use the new USES_TERMINAL option for test suite targets when available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,6 +16,12 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
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)
|
project(LLVM)
|
||||||
|
|
||||||
# Add path for custom modules
|
# Add path for custom modules
|
||||||
|
@@ -679,6 +679,7 @@ function(add_lit_target target comment)
|
|||||||
add_custom_target(${target}
|
add_custom_target(${target}
|
||||||
COMMAND ${LIT_COMMAND} ${ARG_DEFAULT_ARGS}
|
COMMAND ${LIT_COMMAND} ${ARG_DEFAULT_ARGS}
|
||||||
COMMENT "${comment}"
|
COMMENT "${comment}"
|
||||||
|
${cmake_3_2_USES_TERMINAL}
|
||||||
)
|
)
|
||||||
add_dependencies(${target} ${ARG_DEPENDS})
|
add_dependencies(${target} ${ARG_DEPENDS})
|
||||||
else()
|
else()
|
||||||
|
Reference in New Issue
Block a user