From 3440bc37ffc9221a21e9bae540d410279ced283b Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 2 Jun 2017 19:38:11 +0000 Subject: [PATCH] [CMake][runtimes] Add install target for runtimes builtins This adds an install-builtins target to avoid having to list all builtins targets explicitly. Differential Revision: https://reviews.llvm.org/D32710 llvm-svn: 304587 --- llvm/runtimes/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index ef56fa1b9367..6793a49a2ddc 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -188,6 +188,7 @@ else() # if this is included from LLVM's CMake else() get_cmake_property(variableNames VARIABLES) add_custom_target(builtins) + add_custom_target(install-builtins) foreach(target ${LLVM_BUILTIN_TARGETS}) string(REPLACE "-" ";" builtin_target_list ${target}) foreach(item ${builtin_target_list}) @@ -218,6 +219,7 @@ else() # if this is included from LLVM's CMake USE_TOOLCHAIN ${EXTRA_ARGS}) add_dependencies(builtins builtins-${target}) + add_dependencies(install-builtins install-builtins-${target}) endforeach() endif() set(deps builtins)