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

llvm-svn: 159165
This commit is contained in:
Michael J. Spencer 2012-06-25 21:42:38 +00:00
parent 369b9f997c
commit e1db0daf25

View File

@ -1,22 +1,19 @@
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
)
target_link_libraries(lld-core
lldPasses
lldMachO
lldPECOFF
lldELF
lldNative
lldReaderWriter
lldYAML
lldCore
LLVMObject
)
install(TARGETS lld-core
RUNTIME DESTINATION bin)