[llvm] r306842 - [DWARF] Don't include TestingSupport in LLVM_LINK_COMPONENTS.
Juergen Ributzka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 30 09:50:51 PDT 2017
Author: ributzka
Date: Fri Jun 30 09:50:51 2017
New Revision: 306842
URL: http://llvm.org/viewvc/llvm-project?rev=306842&view=rev
Log:
[DWARF] Don't include TestingSupport in LLVM_LINK_COMPONENTS.
This fixes a cmake configuration issue when LLVM is configured with no targets.
Instead we need to add TestingSupport directly with target_link_libraries.
Modified:
llvm/trunk/unittests/DebugInfo/DWARF/CMakeLists.txt
Modified: llvm/trunk/unittests/DebugInfo/DWARF/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/DWARF/CMakeLists.txt?rev=306842&r1=306841&r2=306842&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/DWARF/CMakeLists.txt (original)
+++ llvm/trunk/unittests/DebugInfo/DWARF/CMakeLists.txt Fri Jun 30 09:50:51 2017
@@ -6,7 +6,6 @@ set(LLVM_LINK_COMPONENTS
Object
ObjectYAML
Support
- TestingSupport
)
set(DebugInfoSources
@@ -18,3 +17,5 @@ set(DebugInfoSources
add_llvm_unittest(DebugInfoDWARFTests
${DebugInfoSources}
)
+
+target_link_libraries(DebugInfoDWARFTests LLVMTestingSupport)
More information about the llvm-commits
mailing list