summaryrefslogtreecommitdiffstats
path: root/utils/UpdateCMakeLists.pl
diff options
context:
space:
mode:
Diffstat (limited to 'utils/UpdateCMakeLists.pl')
-rwxr-xr-xutils/UpdateCMakeLists.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl
index 8f535145..d92a767 100755
--- a/utils/UpdateCMakeLists.pl
+++ b/utils/UpdateCMakeLists.pl
@@ -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);
}
OpenPOWER on IntegriCloud