diff options
Diffstat (limited to 'clang/examples')
-rw-r--r-- | clang/examples/AnnotateFunctions/CMakeLists.txt | 6 | ||||
-rw-r--r-- | clang/examples/PrintFunctionNames/CMakeLists.txt | 6 | ||||
-rw-r--r-- | clang/examples/clang-interpreter/CMakeLists.txt | 2 |
3 files changed, 9 insertions, 5 deletions
diff --git a/clang/examples/AnnotateFunctions/CMakeLists.txt b/clang/examples/AnnotateFunctions/CMakeLists.txt index 44b6317e72a..e9850b64f08 100644 --- a/clang/examples/AnnotateFunctions/CMakeLists.txt +++ b/clang/examples/AnnotateFunctions/CMakeLists.txt @@ -1,11 +1,13 @@ add_llvm_library(AnnotateFunctions MODULE AnnotateFunctions.cpp PLUGIN_TOOL clang) if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) - target_link_libraries(AnnotateFunctions PRIVATE + set(LLVM_LINK_COMPONENTS + Support + ) + clang_target_link_libraries(AnnotateFunctions PRIVATE clangAST clangBasic clangFrontend clangLex - LLVMSupport ) endif() diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt index 68c6f76dff0..63b0c015732 100644 --- a/clang/examples/PrintFunctionNames/CMakeLists.txt +++ b/clang/examples/PrintFunctionNames/CMakeLists.txt @@ -12,10 +12,12 @@ endif() add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang) if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) - target_link_libraries(PrintFunctionNames PRIVATE + set(LLVM_LINK_COMPONENTS + Support + ) + clang_target_link_libraries(PrintFunctionNames PRIVATE clangAST clangBasic clangFrontend - LLVMSupport ) endif() diff --git a/clang/examples/clang-interpreter/CMakeLists.txt b/clang/examples/clang-interpreter/CMakeLists.txt index ae2c0876c85..11056aa379a 100644 --- a/clang/examples/clang-interpreter/CMakeLists.txt +++ b/clang/examples/clang-interpreter/CMakeLists.txt @@ -19,7 +19,7 @@ add_dependencies(clang-interpreter clang-resource-headers ) -target_link_libraries(clang-interpreter +clang_target_link_libraries(clang-interpreter PRIVATE clangBasic clangCodeGen |