llvm.org GIT mirror llvm / 6c347f6
[CMake] Removing fallback code for CMake versions before 3.1 This code is dead code now. Out with the old, in with the new! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272347 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
1 changed file(s) with 0 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
126126 USES_TERMINAL_INSTALL 1
127127 )
128128
129 if(CMAKE_VERSION VERSION_LESS 3.1.0)
130 set(ALWAYS_REBUILD ${CMAKE_CURRENT_BINARY_DIR}/${name}-always-rebuild)
131 add_custom_target(${name}-always-rebuild
132 COMMAND ${CMAKE_COMMAND} -E touch ${STAMP_DIR}/${name}-clobber-stamp)
133
134 llvm_ExternalProject_BuildCmd(run_build all ${BINARY_DIR})
135 ExternalProject_Add_Step(${name} force-rebuild
136 COMMAND ${run_build}
137 COMMENT "Forcing rebuild of ${name}"
138 DEPENDEES configure clean
139 DEPENDS ${ALWAYS_REBUILD} ${ARG_DEPENDS} ${TOOLCHAIN_BINS}
140 USES_TERMINAL 1 )
141 endif()
142
143129 if(ARG_USE_TOOLCHAIN)
144130 set(force_deps DEPENDS ${TOOLCHAIN_BINS})
145131 endif()