]> granicus.if.org Git - clang/commitdiff
Update CMakeLists.txt snippet so that example compiles
authorStephen Kelly <steveire@gmail.com>
Mon, 1 Oct 2018 20:28:07 +0000 (20:28 +0000)
committerStephen Kelly <steveire@gmail.com>
Mon, 1 Oct 2018 20:28:07 +0000 (20:28 +0000)
Summary: Previous to this the example didn't work out of the box, it seems some cmake config changed between when this was written and now.

Author: Dan Zimmerman <daniel.zimmerman@me.com>

Reviewers: modocache, steveire

Reviewed By: steveire

Subscribers: smeenai, steveire, cfe-commits

Differential Revision: https://reviews.llvm.org/D52664

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343530 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibASTMatchersTutorial.rst

index 832b47efd1b86318484f58963a830628525aaacd..9e95a7f18db71ab1050c0db764ffd2293749ac25 100644 (file)
@@ -113,6 +113,7 @@ CMakeLists.txt should have the following contents:
         LoopConvert.cpp
         )
       target_link_libraries(loop-convert
+        PRIVATE
         clangTooling
         clangBasic
         clangASTMatchers