llvm.org GIT mirror llvm / 0fd0a99
[CMake] Cleanup uses of USES_TERMINAL Now that we are on CMake 3.4.3 we no longer need a version check around this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272211 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 3 years ago
4 changed file(s) with 6 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
1717 # defer to the OLD behavior of not including generator expressions
1818 # in the output for now.
1919 cmake_policy(SET CMP0051 OLD)
20 endif()
21
22 if(CMAKE_VERSION VERSION_LESS 3.1.20141117)
23 set(cmake_3_2_USES_TERMINAL)
24 else()
25 set(cmake_3_2_USES_TERMINAL USES_TERMINAL)
2620 endif()
2721
2822 if(NOT DEFINED LLVM_VERSION_MAJOR)
10781078 add_custom_target(${target}
10791079 COMMAND ${LIT_COMMAND} ${ARG_UNPARSED_ARGUMENTS}
10801080 COMMENT "${comment}"
1081 ${cmake_3_2_USES_TERMINAL}
1081 USES_TERMINAL
10821082 )
10831083 else()
10841084 add_custom_target(${target}
7474 set(cmake_3_4_USES_TERMINAL USES_TERMINAL 1)
7575 endif()
7676
77 if(CMAKE_VERSION VERSION_GREATER 3.1.20141116)
78 set(cmake_3_2_USES_TERMINAL USES_TERMINAL)
79 endif()
80
8177 set(STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/${name}-stamps/)
8278 set(BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${name}-bins/)
8379
8581 COMMAND ${CMAKE_COMMAND} -E remove_directory ${BINARY_DIR}
8682 COMMAND ${CMAKE_COMMAND} -E remove_directory ${STAMP_DIR}
8783 COMMENT "Clobbering ${name} build and stamp directories"
88 ${cmake_3_2_USES_TERMINAL}
84 USES_TERMINAL
8985 )
9086
9187 # Find all variables that start with COMPILER_RT and populate a variable with
186182 COMMAND "${CMAKE_COMMAND}"
187183 -DCMAKE_INSTALL_COMPONENT=${name}
188184 -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
189 ${cmake_3_2_USES_TERMINAL})
185 USES_TERMINAL)
190186 endif()
191187
192188 # Add top-level targets
197193 DEPENDS ${name}-configure
198194 WORKING_DIRECTORY ${BINARY_DIR}
199195 VERBATIM
200 ${cmake_3_2_USES_TERMINAL})
196 USES_TERMINAL)
201197 endforeach()
202198 endfunction()
6868 COMMAND "${CMAKE_COMMAND}"
6969 -DCMAKE_INSTALL_PREFIX=${LLVMToolchainDir}/usr/
7070 -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
71 ${cmake_3_2_USES_TERMINAL})
71 USES_TERMINAL)
7272
7373 if(LLVM_DISTRIBUTION_COMPONENTS)
7474 if(CMAKE_CONFIGURATION_TYPES)
8585 -DCMAKE_INSTALL_COMPONENT=${target}
8686 -DCMAKE_INSTALL_PREFIX=${LLVMToolchainDir}/usr/
8787 -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
88 ${cmake_3_2_USES_TERMINAL})
88 USES_TERMINAL)
8989 add_dependencies(install-distribution-toolchain install-distribution-${target})
9090 endforeach()
9191 endif()