Generalize matching of add_executable to add_XXX_executable.
llvm-svn: 168490
diff --git a/llvm/utils/UpdateCMakeLists.pl b/llvm/utils/UpdateCMakeLists.pl
index d92a767..c896ea8 100755
--- a/llvm/utils/UpdateCMakeLists.pl
+++ b/llvm/utils/UpdateCMakeLists.pl
@@ -68,7 +68,7 @@
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
- if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_executable\(/) {
+ if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_[^_]+_executable\(/) {
$foundLibrary = 1;
EmitCMakeList($dir);
}