From c37f42c5b84a6c9292e659502cf3c87634c4d0bf Mon Sep 17 00:00:00 2001 From: Leo Li Date: Mon, 24 Jul 2017 17:26:28 +0000 Subject: [PATCH] [CMake] Remove redundant logic in runtimes/CMakeList.txt Summary: `SUB_CHECK_TARGETS` contains all test targets in `SUB_COMPONENTS` when we load `Components.cmake`. We don't need to add those targets again and having duplicate targets will break the cmake policy CMP0002. Reviewers: phosek Subscribers: mgorny, llvm-commits, srhines, pirama Differential Revision: https://reviews.llvm.org/D35692 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308900 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtimes/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index f475878e2f2..14c87358e70 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -367,9 +367,6 @@ else() # if this is included from LLVM's CMake if(LLVM_INCLUDE_TESTS) list(APPEND test_targets runtimes-test-depends check-runtimes) - foreach(component ${SUB_COMPONENTS}) - list(APPEND SUB_CHECK_TARGETS check-${component}) - endforeach() endif() llvm_ExternalProject_Add(runtimes -- 2.50.1