[llvm] r272347 - [CMake] Removing fallback code for CMake versions before 3.1
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 16:53:22 PDT 2016
Author: cbieneman
Date: Thu Jun 9 18:53:22 2016
New Revision: 272347
URL: http://llvm.org/viewvc/llvm-project?rev=272347&view=rev
Log:
[CMake] Removing fallback code for CMake versions before 3.1
This code is dead code now. Out with the old, in with the new!
Modified:
llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake
Modified: llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake?rev=272347&r1=272346&r2=272347&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake Thu Jun 9 18:53:22 2016
@@ -127,20 +127,6 @@ function(llvm_ExternalProject_Add name s
USES_TERMINAL_INSTALL 1
)
- if(CMAKE_VERSION VERSION_LESS 3.1.0)
- set(ALWAYS_REBUILD ${CMAKE_CURRENT_BINARY_DIR}/${name}-always-rebuild)
- add_custom_target(${name}-always-rebuild
- COMMAND ${CMAKE_COMMAND} -E touch ${STAMP_DIR}/${name}-clobber-stamp)
-
- llvm_ExternalProject_BuildCmd(run_build all ${BINARY_DIR})
- ExternalProject_Add_Step(${name} force-rebuild
- COMMAND ${run_build}
- COMMENT "Forcing rebuild of ${name}"
- DEPENDEES configure clean
- DEPENDS ${ALWAYS_REBUILD} ${ARG_DEPENDS} ${TOOLCHAIN_BINS}
- USES_TERMINAL 1 )
- endif()
-
if(ARG_USE_TOOLCHAIN)
set(force_deps DEPENDS ${TOOLCHAIN_BINS})
endif()
More information about the llvm-commits
mailing list