]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - examples/PrintFunctionNames/CMakeLists.txt
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / examples / PrintFunctionNames / CMakeLists.txt
1 # If we don't need RTTI or EH, there's no reason to export anything
2 # from the plugin.
3 if( NOT MSVC ) # MSVC mangles symbols differently, and
4                # PrintFunctionNames.export contains C++ symbols.
5   if( NOT LLVM_REQUIRES_RTTI )
6     if( NOT LLVM_REQUIRES_EH )
7       set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
8     endif()
9   endif()
10 endif()
11
12 add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang)
13
14 if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
15   target_link_libraries(PrintFunctionNames PRIVATE
16     clangAST
17     clangBasic
18     clangFrontend
19     LLVMSupport
20     )
21 endif()