diff --git a/clang-tools-extra/include-cleaner/lib/CMakeLists.txt b/clang-tools-extra/include-cleaner/lib/CMakeLists.txt --- a/clang-tools-extra/include-cleaner/lib/CMakeLists.txt +++ b/clang-tools-extra/include-cleaner/lib/CMakeLists.txt @@ -6,7 +6,8 @@ WalkAST.cpp LINK_LIBS - clangBasic clangAST + clangBasic + clangLex ) diff --git a/clang-tools-extra/include-cleaner/tool/CMakeLists.txt b/clang-tools-extra/include-cleaner/tool/CMakeLists.txt --- a/clang-tools-extra/include-cleaner/tool/CMakeLists.txt +++ b/clang-tools-extra/include-cleaner/tool/CMakeLists.txt @@ -4,6 +4,8 @@ add_clang_tool(clang-include-cleaner IncludeCleaner.cpp) clang_target_link_libraries(clang-include-cleaner PRIVATE clangBasic + clangFrontend + clangSerialization clangTooling ) target_link_libraries(clang-include-cleaner PRIVATE