teak-llvm/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt
Michał Górny 4121399c12 [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
2019-12-18 22:33:23 +01:00

17 lines
259 B
CMake

set(LLVM_LINK_COMPONENTS
FrontendOpenMP
Support)
add_clang_library(clangTidyOpenMPModule
ExceptionEscapeCheck.cpp
OpenMPTidyModule.cpp
UseDefaultNoneCheck.cpp
LINK_LIBS
clangAST
clangASTMatchers
clangBasic
clangTidy
clangTidyUtils
)