summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-05-06 22:22:25 +0000
committerJustin Bogner <mail@justinbogner.com>2016-05-06 22:22:25 +0000
commit2fae05b357e0e82ece55ca22c6f971194970192b (patch)
tree9803457cc6165447a80e0f150a270fc1cd8ca1cb /cmake
parent05803957d4fe741954655c8de8f3748a5f05f131 (diff)
cmake: Avoid continue, apparently that's new
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake15
1 files changed, 7 insertions, 8 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 6bdb76259a0..06d26673e96 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -1059,14 +1059,13 @@ function(add_lit_testsuites project directory)
set(cur_to_process ${to_process})
set(to_process)
foreach(lit_suite ${cur_to_process})
- if(NOT IS_DIRECTORY ${lit_suite})
- continue()
- endif()
- string(FIND ${lit_suite} Inputs is_inputs)
- if (is_inputs EQUAL -1)
- list(APPEND lit_suites "${lit_suite}")
- file(GLOB subdirs ${lit_suite}/*)
- list(APPEND to_process ${subdirs})
+ if(IS_DIRECTORY ${lit_suite})
+ string(FIND ${lit_suite} Inputs is_inputs)
+ if (is_inputs EQUAL -1)
+ list(APPEND lit_suites "${lit_suite}")
+ file(GLOB subdirs ${lit_suite}/*)
+ list(APPEND to_process ${subdirs})
+ endif()
endif()
endforeach()
endwhile()