diff --git a/clang/examples/Attribute/CMakeLists.txt b/clang/examples/Attribute/CMakeLists.txt index 770fa28364b77..0200063d86b0c 100644 --- a/clang/examples/Attribute/CMakeLists.txt +++ b/clang/examples/Attribute/CMakeLists.txt @@ -1,11 +1,13 @@ add_llvm_library(Attribute MODULE Attribute.cpp PLUGIN_TOOL clang) if(WIN32 OR CYGWIN) - target_link_libraries(Attribute PRIVATE + set(LLVM_LINK_COMPONENTS + Support + ) + clang_target_link_libraries(Attribute PRIVATE clangAST clangBasic clangFrontend clangLex - LLVMSupport ) endif()