diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-07-25 18:07:14 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-07-25 18:07:14 +0000 |
commit | 7e6a25847643192f58b59ff7436f0b3e11c743d1 (patch) | |
tree | ba67ed5174b4ddca4bdf9b2fad7f2f0ba4f7f520 /cmake | |
parent | 3757ea80f3b6e626835d1cff733085be4e4152f1 (diff) |
cmake: When adding lit testsuites, ignore Output directories
With in-tree builds we can get Output directories scattered among our
tests. Recursing into those to find tests doesn't make sense.
Thanks to nlewycky for noticing this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/AddLLVM.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 582f318e421..9cd46ebc730 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -1138,7 +1138,8 @@ function(add_lit_testsuites project directory) continue() endif() string(FIND ${lit_suite} Inputs is_inputs) - if (NOT is_inputs EQUAL -1) + string(FIND ${lit_suite} Output is_output) + if (NOT (is_inputs EQUAL -1 AND is_output EQUAL -1)) continue() endif() |