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);
}
my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest;
close(FILE);
- if ($digestA != $digestB) {
+ if ($digestA ne $digestB) {
move($cmakeListNew, $cmakeList);
return 1;
}