From: Justin Bogner Date: Thu, 26 Nov 2015 19:52:24 +0000 (+0000) Subject: docs: Remove references to the long-defunct LLVM_USED_LIBS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87a17a30e10d7e612d9acdd803ae7c31d278e46e;p=clang docs: Remove references to the long-defunct LLVM_USED_LIBS 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 --- diff --git a/docs/LibASTMatchersTutorial.rst b/docs/LibASTMatchersTutorial.rst index fe36511a0c..603b2faf01 100644 --- a/docs/LibASTMatchersTutorial.rst +++ b/docs/LibASTMatchersTutorial.rst @@ -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 diff --git a/docs/RAVFrontendAction.rst b/docs/RAVFrontendAction.rst index ec5d5d54ff..c37d3c0e81 100644 --- a/docs/RAVFrontendAction.rst +++ b/docs/RAVFrontendAction.rst @@ -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: