Remove the UseCFI option from createAsmStreamer.
[oota-llvm.git] / tools / lto / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   Core
4   LTO
5   MC
6   MCDisassembler
7   Support
8   )
9
10 add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" )
11
12 set(SOURCES
13   LTODisassembler.cpp
14   lto.cpp
15   )
16
17 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
18
19 if(NOT CYGWIN AND LLVM_ENABLE_PIC)
20   set(ENABLE_SHARED SHARED)
21 endif()
22
23 add_llvm_library(LTO ${ENABLE_SHARED} STATIC ${SOURCES})
24
25 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
26   DESTINATION include/llvm-c)