Use regex instead of special casing clang and llvm libraries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2012-07-31 18:23:44 +00:00
parent 36bcc11236
commit 521ed460e9

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);
}