diff options
author | Tom Stellard <tstellar@redhat.com> | 2019-07-03 22:45:55 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2019-07-03 22:45:55 +0000 |
commit | 2e97d2aa1bd313350e76be64299f19172a346bf9 (patch) | |
tree | f486cd121af50d7f4b2810314361c1a8e4fd247f /clang/examples/PrintFunctionNames | |
parent | e0308279cbdd18391c533d6501922429ff4ef839 (diff) | |
download | bcm5719-llvm-2e97d2aa1bd313350e76be64299f19172a346bf9.tar.gz bcm5719-llvm-2e97d2aa1bd313350e76be64299f19172a346bf9.zip |
cmake: Add CLANG_LINK_CLANG_DYLIB option
Summary:
Setting CLANG_LINK_CLANG_DYLIB=ON causes clang tools to link against
libclang_shared.so instead of the individual component libraries.
Reviewers: mgorny, beanz, smeenai, phosek, sylvestre.ledru
Subscribers: arphaman, cfe-commits, llvm-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63503
llvm-svn: 365092
Diffstat (limited to 'clang/examples/PrintFunctionNames')
-rw-r--r-- | clang/examples/PrintFunctionNames/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt index 68c6f76dff0..63b0c015732 100644 --- a/clang/examples/PrintFunctionNames/CMakeLists.txt +++ b/clang/examples/PrintFunctionNames/CMakeLists.txt @@ -12,10 +12,12 @@ endif() add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang) if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) - target_link_libraries(PrintFunctionNames PRIVATE + set(LLVM_LINK_COMPONENTS + Support + ) + clang_target_link_libraries(PrintFunctionNames PRIVATE clangAST clangBasic clangFrontend - LLVMSupport ) endif() |