mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 17:46:49 +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.
32 lines
499 B
CMake
32 lines
499 B
CMake
add_subdirectory(cli)
|
|
add_subdirectory(cxx)
|
|
add_subdirectory(grammar)
|
|
|
|
set(LLVM_LINK_COMPONENTS Support)
|
|
|
|
add_clang_library(clangPseudo
|
|
Bracket.cpp
|
|
DirectiveTree.cpp
|
|
Disambiguate.cpp
|
|
Forest.cpp
|
|
GLR.cpp
|
|
Lex.cpp
|
|
Token.cpp
|
|
|
|
LINK_LIBS
|
|
clangPseudoGrammar
|
|
|
|
DEPENDS
|
|
ClangDriverOptions
|
|
)
|
|
|
|
target_include_directories(clangPseudo INTERFACE
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
|
)
|
|
|
|
clang_target_link_libraries(clangPseudo
|
|
PRIVATE
|
|
clangBasic
|
|
clangLex
|
|
)
|