Index: cmake/modules/AddLLVM.cmake =================================================================== --- cmake/modules/AddLLVM.cmake +++ cmake/modules/AddLLVM.cmake @@ -1205,7 +1205,7 @@ cmake_parse_arguments(ARG "" "" "PARAMS;DEPENDS;ARGS" ${ARGN}) # Search recursively for test directories by assuming anything not - # in a directory called Inputs contains tests. + # in a directory called Inputs/Output/.* contains tests. file(GLOB_RECURSE to_process LIST_DIRECTORIES true ${directory}/*) foreach(lit_suite ${to_process}) if(NOT IS_DIRECTORY ${lit_suite}) @@ -1216,6 +1216,9 @@ if (NOT (is_inputs EQUAL -1 AND is_output EQUAL -1)) continue() endif() + if(${lit_suite} MATCHES ".*[\/][\.].*") + continue() + endif() # Create a check- target for the directory. string(REPLACE ${directory} "" name_slash ${lit_suite})