From ef2ab693151840e73a9622cfc3240e03fcadfdeb Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Fri, 26 Aug 2016 20:34:11 +0000 Subject: [PATCH] [CMake] Expose runtime component check targets This will expose the check targets for runtime project components into the top-level build. It will enable exposing targets like check-asan. llvm-svn: 279861 --- llvm/runtimes/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index 789a93c..139f603 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -153,6 +153,9 @@ else() # if this is included from LLVM's CMake if(LLVM_INCLUDE_TESTS) set(test_targets runtimes-test-depends check-runtimes) + foreach(component ${SUB_COMPONENTS}) + list(APPEND SUB_COMPONENT_CHECK_TARGETS check-${component}) + endforeach() endif() # Create a runtimes target that uses this file as its top-level CMake file. @@ -168,6 +171,7 @@ else() # if this is included from LLVM's CMake EXTRA_TARGETS ${extra_targets} ${test_targets} ${SUB_COMPONENTS} + ${SUB_COMPONENT_CHECK_TARGETS} ${SUB_INSTALL_TARGETS} USE_TOOLCHAIN) if(LLVM_INCLUDE_TESTS) -- 2.7.4