aboutsummaryrefslogtreecommitdiff
path: root/utils/UpdateCMakeLists.pl
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-29 01:10:55 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-29 01:10:55 +0000
commita78def96803f4f690ab7015b6b308004e9b2c8dd (patch)
treee2bb6af18aaa23ab47f448d4681aa0d727df952a /utils/UpdateCMakeLists.pl
parent55b88096aa1d3a409bdd35f25faa7fa2552f274f (diff)
Recognize 'add_executable' when analyzing CMake files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/UpdateCMakeLists.pl')
-rwxr-xr-xutils/UpdateCMakeLists.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl
index 6d24d90eea..8f535145de 100755
--- a/utils/UpdateCMakeLists.pl
+++ b/utils/UpdateCMakeLists.pl
@@ -68,7 +68,8 @@ sub UpdateCMake {
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
- if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/) {
+ if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/
+ || /^add_executable\(/) {
$foundLibrary = 1;
EmitCMakeList($dir);
}