Skip to content

Commit 9b9de47

Browse files
committed
[CMake] Give explicit dependencies to a couple of modules, PrintFunctionNames and SampleAnalyzerPlugin, for Win32.DLL.
llvm-svn: 212906
1 parent 6672b8e commit 9b9de47

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

clang/examples/PrintFunctionNames/CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ if( NOT MSVC ) # MSVC mangles symbols differently, and
1010
endif()
1111

1212
add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp)
13+
14+
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
15+
target_link_libraries(PrintFunctionNames ${cmake_2_8_12_PRIVATE}
16+
clangAST
17+
clangBasic
18+
clangFrontend
19+
LLVMSupport
20+
)
21+
endif()
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp)
2+
3+
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
4+
target_link_libraries(SampleAnalyzerPlugin ${cmake_2_8_12_PRIVATE}
5+
clangAnalysis
6+
clangAST
7+
clangStaticAnalyzerCore
8+
LLVMSupport
9+
)
10+
endif()

0 commit comments

Comments
 (0)