set(LLVM_USED_LIBS
  lldPasses
  lldMachO
  lldPECOFF
  lldELF
  lldNative
  lldYAML
  lldReaderWriter
  lldCore
 )

set(LLVM_LINK_COMPONENTS
  support
  Object
  )

add_lld_executable(lld-core
  lld-core.cpp
  )

install(TARGETS lld-core
  RUNTIME DESTINATION bin)


add_lld_executable(lld-core
  lld-core.cpp
  )

target_link_libraries(lld-core
  lldPasses
  lldMachO
  lldPECOFF
  lldELF
  lldNative
  lldReaderWriter
  lldYAML
  lldCore
  LLVMObject
 )

install(TARGETS lld-core
  RUNTIME DESTINATION bin)

Fix CMake build to use target_link_libraries. Patch by Sidney Manning!
Fix CMake build to use target_link_libraries. Patch by Sidney Manning!

git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@159165 91177308-0d34-0410-b5e6-96231b3b80d8
