Skip to content

Commit

Permalink
Recognize 'add_executable' when analyzing CMake files.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94777 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
tkremenek committed Jan 29, 2010
1 parent 55b8809 commit a78def9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/UpdateCMakeLists.pl
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit a78def9

Please sign in to comment.