Iterate deterministically over register classes
[oota-llvm.git] / utils / UpdateCMakeLists.pl
index 6d24d90eea5111a46bcd7f5ea923d2dfdcc18aa3..d92a767adf328b4194595deb4033c4d16a09f58f 100755 (executable)
@@ -68,7 +68,7 @@ sub UpdateCMake {
   while(<IN>) {
     if (!$foundLibrary) {
       print OUT $_;
-      if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/) {
+      if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_executable\(/) {
         $foundLibrary = 1;
         EmitCMakeList($dir);
       }