Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 91 | macro(link_to_llvm name is_standalone) | |||
---|---|---|---|---|---|
120 | 120 | | |||
121 | foreach(llvm_system_lib ${LLVM_SYSTEM_LIBS}) | 121 | foreach(llvm_system_lib ${LLVM_SYSTEM_LIBS}) | ||
122 | target_link_libraries(${name} ${llvm_system_lib}) | 122 | target_link_libraries(${name} ${llvm_system_lib}) | ||
123 | endforeach() | 123 | endforeach() | ||
124 | 124 | | |||
125 | if(WIN32) | 125 | if(WIN32) | ||
126 | target_link_libraries(${name} version.lib) | 126 | target_link_libraries(${name} version.lib) | ||
127 | endif() | 127 | endif() | ||
128 | # clang >= 9.0 can provide a single shared library instead of split ones | ||||
129 | if(CLANG_CLANG-CPP_LIB) | ||||
130 | target_link_libraries(${name} clang-cpp) | ||||
131 | else() | ||||
128 | target_link_libraries(${name} clangTooling) | 132 | target_link_libraries(${name} clangTooling) | ||
129 | target_link_libraries(${name} clangToolingCore) | 133 | target_link_libraries(${name} clangToolingCore) | ||
130 | target_link_libraries(${name} ${clang_tooling_refactoring_lib}) | 134 | target_link_libraries(${name} ${clang_tooling_refactoring_lib}) | ||
135 | endif() | ||||
131 | endmacro() | 136 | endmacro() | ||
132 | 137 | | |||
133 | macro(add_clang_plugin name) | 138 | macro(add_clang_plugin name) | ||
134 | set(srcs ${ARGN}) | 139 | set(srcs ${ARGN}) | ||
135 | 140 | | |||
136 | add_library(${name} SHARED ${srcs}) | 141 | add_library(${name} SHARED ${srcs}) | ||
137 | 142 | | |||
138 | if(SYMBOL_FILE) | 143 | if(SYMBOL_FILE) | ||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |