X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=utils%2FUpdateCMakeLists.pl;h=c896ea839be88521f74ea749b97b87c1a4b7595a;hb=12af22e8cc217827cf4f118b0f5e4ebbda9925ae;hp=94e69ce2556cae9073c2ea9615e3c829534cb8ef;hpb=9344eb76040c8cc98e3c9f20834abae6bb5563be;p=oota-llvm.git diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl index 94e69ce2556..c896ea839be 100755 --- a/utils/UpdateCMakeLists.pl +++ b/utils/UpdateCMakeLists.pl @@ -68,7 +68,7 @@ sub UpdateCMake { while() { 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; }