aboutsummaryrefslogtreecommitdiff
path: root/examples/PrintFunctionNames
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-08 19:23:49 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-08 19:23:49 +0000
commiteb5dc498da53b50633eb9b19ca43b8988c340f0d (patch)
tree33442f6de69450afdb6f9783df3c1b98aeb4fd75 /examples/PrintFunctionNames
parent45f5b54d67215639ae6585d12df5133e99180c2b (diff)
Teach the PrintFunctionNames example to be a proper module, so that
Clang can load it as a plugin. Original fix by Troy D. Straszheim, which I extended with Darwin support. Fixes PR6801. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/PrintFunctionNames')
-rw-r--r--examples/PrintFunctionNames/CMakeLists.txt22
1 files changed, 3 insertions, 19 deletions
diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt
index 49dd22ad8d..5ea75db42e 100644
--- a/examples/PrintFunctionNames/CMakeLists.txt
+++ b/examples/PrintFunctionNames/CMakeLists.txt
@@ -1,26 +1,10 @@
-set(SHARED_LIBRARY TRUE)
+set(MODULE TRUE)
set(LLVM_NO_RTTI 1)
-set(LLVM_USED_LIBS
- clangIndex
- clangFrontend
- clangDriver
- clangSema
- clangAnalysis
- clangAST
- clangParse
- clangLex
- clangBasic)
-
-set( LLVM_LINK_COMPONENTS
- bitreader
- mc
- core
- )
-
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
set_target_properties(PrintFunctionNames
PROPERTIES
- LINKER_LANGUAGE CXX)
+ LINKER_LANGUAGE CXX
+ PREFIX "")