mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 18:46:40 +00:00

Use clang_target_link_libraries() instead of LINK_LIBS when linking clang libraries. This ensures that in CLANG_LINK_CLANG_DYLIB mode we link against libclang-cpp.so (instead of linking against both it and the static libraries). Most places were already doing this correctly, there were just a handful of leftovers.
20 lines
227 B
CMake
20 lines
227 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_clang_library(clangPseudoCXX
|
|
CXX.cpp
|
|
|
|
DEPENDS
|
|
cxx_gen
|
|
|
|
LINK_LIBS
|
|
clangPseudo
|
|
clangPseudoGrammar
|
|
)
|
|
|
|
clang_target_link_libraries(clangPseudoCXX
|
|
PRIVATE
|
|
clangBasic
|
|
)
|