File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,17 @@ function(llvm_check_source_file_list)
59
59
file (GLOB globbed *.c *.cpp )
60
60
foreach (g ${globbed} )
61
61
get_filename_component (fn ${g} NAME )
62
- list (FIND LLVM_OPTIONAL_SOURCES ${fn} idx )
63
- if ( idx LESS 0 )
64
- list (FIND listed ${fn} idx )
62
+
63
+ # Don't reject hidden files. Some editors create backups in the
64
+ # same directory as the file.
65
+ if (NOT "${fn} " MATCHES "^\\ ." )
66
+ list (FIND LLVM_OPTIONAL_SOURCES ${fn} idx )
65
67
if ( idx LESS 0 )
66
- message (SEND_ERROR "Found unknown source file ${g}
68
+ list (FIND listed ${fn} idx )
69
+ if ( idx LESS 0 )
70
+ message (SEND_ERROR "Found unknown source file ${g}
67
71
Please update ${CMAKE_CURRENT_LIST_FILE} \n " )
72
+ endif ()
68
73
endif ()
69
74
endif ()
70
75
endforeach ()
You can’t perform that action at this time.
0 commit comments