]> granicus.if.org Git - clang/commitdiff
docs: Remove references to the long-defunct LLVM_USED_LIBS
authorJustin Bogner <mail@justinbogner.com>
Thu, 26 Nov 2015 19:52:24 +0000 (19:52 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 26 Nov 2015 19:52:24 +0000 (19:52 +0000)
LLVM_USED_LIBS hasn't done anything since 2012, stop telling people to
set it in the docs.

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

docs/LibASTMatchersTutorial.rst
docs/RAVFrontendAction.rst

index fe36511a0cf51a84195f0cf5bee4204fac588881..603b2faf01da11d3183e1ee043f82885a9492562 100644 (file)
@@ -108,7 +108,6 @@ CMakeLists.txt should have the following contents:
 ::
 
       set(LLVM_LINK_COMPONENTS support)
-      set(LLVM_USED_LIBS clangTooling clangBasic clangAST)
 
       add_clang_executable(loop-convert
         LoopConvert.cpp
index ec5d5d54ff9be83553c82a35e2f2254143bfcc4d..c37d3c0e812ec26b9d2a8748ed41d7e87c9a3933 100644 (file)
@@ -205,10 +205,10 @@ following CMakeLists.txt to link it:
 
 ::
 
-    set(LLVM_USED_LIBS clangTooling)
-
     add_clang_executable(find-class-decls FindClassDecls.cpp)
 
+    target_link_libraries(find-class-decls clangTooling)
+
 When running this tool over a small code snippet it will output all
 declarations of a class n::m::C it found: