forked from OSchip/llvm-project
[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:
parent
8f7f2c4211
commit
6ee1f64a2e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue