Don't keep the log files around. Just pipe to a log file instead.
[oota-llvm.git] / utils / UpdateCMakeLists.pl
index 6d24d90eea5111a46bcd7f5ea923d2dfdcc18aa3..8f535145de3115959ee1a3db793d5fa0f63aa417 100755 (executable)
@@ -68,7 +68,8 @@ sub UpdateCMake {
   while(<IN>) {
     if (!$foundLibrary) {
       print OUT $_;
-      if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/) {
+      if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/
+          || /^add_executable\(/) {
         $foundLibrary = 1;
         EmitCMakeList($dir);
       }