From 61b5ff5ab4e5848e5e98b811cf0accf5d3b8db22 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 8 Jun 2010 19:23:49 +0000 Subject: 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. llvm-svn: 105630 --- clang/examples/PrintFunctionNames/CMakeLists.txt | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'clang/examples/PrintFunctionNames') diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt index 49dd22ad8d0..5ea75db42e0 100644 --- a/clang/examples/PrintFunctionNames/CMakeLists.txt +++ b/clang/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 "") -- cgit v1.2.3