CMakeLists.txt revision 798403babdac3bb7e5ad64bc334cc75e697158be
1set(LLVM_LINK_COMPONENTS 2 ${LLVM_TARGETS_TO_BUILD} 3 ipo scalaropts linker bitreader bitwriter) 4 5add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" ) 6 7# TODO: build a static library too. 8set(BUILD_SHARED_LIBS ON) 9 10add_llvm_library(LTO 11 LTOCodeGenerator.cpp 12 lto.cpp 13 LTOModule.cpp 14 ) 15 16