Set LLVM_EXPORTED_SYMBOL_FILE in CMakeLists whose corresponding Makefiles do so.
[oota-llvm.git] / lib / Transforms / Hello / CMakeLists.txt
1 # If we don't need RTTI or EH, there's no reason to export anything
2 # from the hello plugin.
3 if( NOT LLVM_REQUIRES_RTTI )
4   if( NOT LLVM_REQUIRES_EH )
5     set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Hello.exports)
6   endif()
7 endif()
8
9 add_llvm_loadable_module( LLVMHello
10   Hello.cpp
11   )