[MCTargetAsmParser] Move the member varialbes that reference
[oota-llvm.git] / utils / UpdateCMakeLists.pl
index 94e69ce2556cae9073c2ea9615e3c829534cb8ef..c896ea839be88521f74ea749b97b87c1a4b7595a 100755 (executable)
@@ -68,7 +68,7 @@ sub UpdateCMake {
   while(<IN>) {
     if (!$foundLibrary) {
       print OUT $_;
-      if (/^add_clang_library\(/ || /^add_llvm_library\(/) {
+      if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_[^_]+_executable\(/) {
         $foundLibrary = 1;
         EmitCMakeList($dir);
       }
@@ -96,7 +96,7 @@ sub UpdateCMake {
   my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest;
   close(FILE);
   
-  if ($digestA != $digestB) {
+  if ($digestA ne $digestB) {
     move($cmakeListNew, $cmakeList);
     return 1;    
   }