Instead use target_link_libraries directly. Thanks to
Juergen Ributzka for the suggestion, which fixes an issue
when llvm is configured with no targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305421
91177308-0d34-0410-b5e6-
96231b3b80d8
set(LLVM_LINK_COMPONENTS
DebugInfoCodeView
- TestingSupport
)
set(DebugInfoCodeViewSources
add_llvm_unittest(DebugInfoCodeViewTests
${DebugInfoCodeViewSources}
)
+
+target_link_libraries(DebugInfoCodeViewTests LLVMTestingSupport)
\ No newline at end of file
DebugInfoCodeView
DebugInfoMSF
DebugInfoPDB
- TestingSupport
)
set(DebugInfoPDBSources
add_llvm_unittest(DebugInfoPDBTests
${DebugInfoPDBSources}
)
+
+target_link_libraries(DebugInfoPDBTests LLVMTestingSupport)
\ No newline at end of file
set(LLVM_LINK_COMPONENTS
Support
- TestingSupport
)
add_llvm_unittest(SupportTests
set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
# ManagedStatic.cpp uses <pthread>.
-target_link_libraries(SupportTests ${LLVM_PTHREAD_LIB})
+target_link_libraries(SupportTests LLVMTestingSupport ${LLVM_PTHREAD_LIB})
add_subdirectory(DynamicLibrary)