forked from OSchip/llvm-project
[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 llvm-svn: 308900
This commit is contained in:
parent
cef66e5281
commit
d6f537efcf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue