]> granicus.if.org Git - llvm/commitdiff
[CMake] Remove redundant logic in runtimes/CMakeList.txt
authorLeo Li <aoli@google.com>
Mon, 24 Jul 2017 17:26:28 +0000 (17:26 +0000)
committerLeo Li <aoli@google.com>
Mon, 24 Jul 2017 17:26:28 +0000 (17:26 +0000)
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

index f475878e2f2a0aeba6aad1cbeb57d575702b63f5..14c87358e706eeb1f3060d6d9c58876f47f78242 100644 (file)
@@ -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