Use regex instead of special casing clang and llvm libraries.

llvm-svn: 161065
This commit is contained in:
Ted Kremenek 2012-07-31 18:23:44 +00:00
parent 69bd4e803b
commit cf8cfd7fc2
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ sub UpdateCMake {
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/
|| /^add_executable\(/) {
if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_executable\(/) {
$foundLibrary = 1;
EmitCMakeList($dir);
}