From: Chris Bieneman Date: Fri, 19 Aug 2016 22:17:46 +0000 (+0000) Subject: [CMake] Add top-level install-compiler-rt target X-Git-Tag: llvmorg-4.0.0-rc1~11860 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83877ee6ccdf6887bc504557a6e8683042e9d496;p=platform%2Fupstream%2Fllvm.git [CMake] Add top-level install-compiler-rt target This is a wrapper target of all the component install targets. This wrapper target will be used by the new LLVM runtimes directory to connect top-level targets to the runtime project target. llvm-svn: 279333 --- diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index 3342248..022c1b7 100644 --- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake +++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake @@ -164,6 +164,7 @@ function(add_compiler_rt_runtime name type) -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") set_target_properties(install-${LIB_PARENT_TARGET} PROPERTIES FOLDER "Compiler-RT Misc") + add_dependencies(install-compiler-rt install-${LIB_PARENT_TARGET}) endif() endif() diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake index 4f3976d..830e443 100644 --- a/compiler-rt/cmake/base-config-ix.cmake +++ b/compiler-rt/cmake/base-config-ix.cmake @@ -8,6 +8,7 @@ check_include_file(unwind.h HAVE_UNWIND_H) # Top level target used to build all compiler-rt libraries. add_custom_target(compiler-rt ALL) +add_custom_target(install-compiler-rt) set_target_properties(compiler-rt PROPERTIES FOLDER "Compiler-RT Misc") # Setting these variables from an LLVM build is sufficient that compiler-rt can