[clang-tools-extra] Fix linking dylib for LLVMFrontendOpenMP

Use LLVM_LINK_COMPONENTS to link the FrontendOpenMP library
instead of passing it explicitly to LINK_LIBS.  This fixes duplicating
the library when clang-tidy is linked to LLVM dylib.

Differential Revision: https://reviews.llvm.org/D71674
This commit is contained in:
Michał Górny 2019-12-18 22:10:20 +01:00
parent e3fa460407
commit 4121399c12
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,6 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support)
add_clang_library(clangTidyOpenMPModule
ExceptionEscapeCheck.cpp
@ -11,5 +13,4 @@ add_clang_library(clangTidyOpenMPModule
clangBasic
clangTidy
clangTidyUtils
LLVMFrontendOpenMP
)