From 521ed460e9a2c4821987cdfd62f68720d2c40ccd Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 31 Jul 2012 18:23:44 +0000 Subject: [PATCH] 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 --- utils/UpdateCMakeLists.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl index 8f535145de3..d92a767adf3 100755 --- a/utils/UpdateCMakeLists.pl +++ b/utils/UpdateCMakeLists.pl @@ -68,8 +68,7 @@ sub UpdateCMake { while() { 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); } -- 2.34.1