]> granicus.if.org Git - llvm/commitdiff
Don't include TestingSupport in LLVM_LINK_COMPONENTS.
authorZachary Turner <zturner@google.com>
Wed, 14 Jun 2017 22:33:43 +0000 (22:33 +0000)
committerZachary Turner <zturner@google.com>
Wed, 14 Jun 2017 22:33:43 +0000 (22:33 +0000)
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

unittests/DebugInfo/CodeView/CMakeLists.txt
unittests/DebugInfo/PDB/CMakeLists.txt
unittests/Support/CMakeLists.txt

index 800f482d668cad38bd7fca2d303afd90df3d0899..6f504d8149b50b34dc397267094f525c272b0b3e 100644 (file)
@@ -1,6 +1,5 @@
 set(LLVM_LINK_COMPONENTS
   DebugInfoCodeView
-  TestingSupport
   )
 
 set(DebugInfoCodeViewSources
@@ -11,3 +10,5 @@ set(DebugInfoCodeViewSources
 add_llvm_unittest(DebugInfoCodeViewTests
   ${DebugInfoCodeViewSources}
   )
+
+target_link_libraries(DebugInfoCodeViewTests LLVMTestingSupport)
\ No newline at end of file
index ce6dadfbcdb7ff2ff2eb2762b7f5c224ffd0770c..989cb396f674f544c5e86f8b80cfecc7a162b9b0 100644 (file)
@@ -2,7 +2,6 @@ set(LLVM_LINK_COMPONENTS
   DebugInfoCodeView
   DebugInfoMSF
   DebugInfoPDB
-  TestingSupport
   )
 
 set(DebugInfoPDBSources
@@ -17,3 +16,5 @@ set(DebugInfoPDBSources
 add_llvm_unittest(DebugInfoPDBTests
   ${DebugInfoPDBSources}
   )
+
+target_link_libraries(DebugInfoPDBTests LLVMTestingSupport)
\ No newline at end of file
index 348ffba95f2682eb747c34b7c9d3d0142d3f73ba..e2a6561089bc2f4c8f2735b97a7831684b32a3e9 100644 (file)
@@ -1,6 +1,5 @@
 set(LLVM_LINK_COMPONENTS
   Support
-  TestingSupport
   )
 
 add_llvm_unittest(SupportTests
@@ -73,6 +72,6 @@ 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)