r254173 - docs: Remove references to the long-defunct LLVM_USED_LIBS

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 26 11:52:24 PST 2015


Author: bogner
Date: Thu Nov 26 13:52:24 2015
New Revision: 254173

URL: http://llvm.org/viewvc/llvm-project?rev=254173&view=rev
Log:
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.

Modified:
    cfe/trunk/docs/LibASTMatchersTutorial.rst
    cfe/trunk/docs/RAVFrontendAction.rst

Modified: cfe/trunk/docs/LibASTMatchersTutorial.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LibASTMatchersTutorial.rst?rev=254173&r1=254172&r2=254173&view=diff
==============================================================================
--- cfe/trunk/docs/LibASTMatchersTutorial.rst (original)
+++ cfe/trunk/docs/LibASTMatchersTutorial.rst Thu Nov 26 13:52:24 2015
@@ -108,7 +108,6 @@ CMakeLists.txt should have the following
 ::
 
       set(LLVM_LINK_COMPONENTS support)
-      set(LLVM_USED_LIBS clangTooling clangBasic clangAST)
 
       add_clang_executable(loop-convert
         LoopConvert.cpp

Modified: cfe/trunk/docs/RAVFrontendAction.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/RAVFrontendAction.rst?rev=254173&r1=254172&r2=254173&view=diff
==============================================================================
--- cfe/trunk/docs/RAVFrontendAction.rst (original)
+++ cfe/trunk/docs/RAVFrontendAction.rst Thu Nov 26 13:52:24 2015
@@ -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:
 




More information about the cfe-commits mailing list