diff options
| author | Chris Bieneman <beanz@apple.com> | 2015-03-27 21:45:49 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2015-03-27 21:45:49 +0000 |
| commit | abc8fb276a252436c68ccc540d3451246a629464 (patch) | |
| tree | 37b2b4d3c85bbfa2d49c246fa011ac24765f83a9 /llvm | |
| parent | f176566a00f02502a88764eab0a3259ed12fc815 (diff) | |
| download | bcm5719-llvm-abc8fb276a252436c68ccc540d3451246a629464.tar.gz bcm5719-llvm-abc8fb276a252436c68ccc540d3451246a629464.zip | |
[CMake] Removing duplicates from the list of test suites to generate targets for.
Not doing this causes some headaches for users migrating from autoconf to CMake.
llvm-svn: 233428
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 1bb98a14d49..5d906bbc1be 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -803,8 +803,13 @@ function(add_lit_testsuites project directory) if (NOT CMAKE_CONFIGURATION_TYPES) parse_arguments(ARG "PARAMS;DEPENDS;ARGS" "" ${ARGN}) file(GLOB_RECURSE litCfg ${directory}/lit*.cfg) + set(lit_suites) foreach(f ${litCfg}) get_filename_component(dir ${f} DIRECTORY) + set(lit_suites ${lit_suites} ${dir}) + endforeach() + list(REMOVE_DUPLICATES lit_suites) + foreach(dir ${lit_suites}) string(REPLACE ${directory} "" name_slash ${dir}) if (name_slash) string(REPLACE "/" "-" name_slash ${name_slash}) |

