[NFC][Docs] Fix RAVFrontendAction doc's CMakelists.txt for Shared build

[[ https://clang.llvm.org/docs/RAVFrontendAction.html | Example tutorial ]] giving undefine reference error while building with BUILD_SHARED_LIBS=ON.

Differential Revision: https://reviews.llvm.org/D95737
This commit is contained in:
xgupta 2021-02-02 12:53:45 +05:30
parent 8f7f2c4211
commit 6ee1f64a2e
1 changed files with 8 additions and 1 deletions

View File

@ -207,7 +207,14 @@ following CMakeLists.txt to link it:
add_clang_executable(find-class-decls FindClassDecls.cpp)
target_link_libraries(find-class-decls clangTooling)
target_link_libraries(find-class-decls
PRIVATE
clangAST
clangBasic
clangFrontend
clangSerialization
clangTooling
)
When running this tool over a small code snippet it will output all
declarations of a class n::m::C it found: