[lld] r220000 - [CMake] lld: Introduce ${cmake_2_8_12_INTERFACE} onto each target_link_libraries. [PR20254]
NAKAMURA Takumi
geek4civic at gmail.com
Thu Oct 16 17:37:49 PDT 2014
Author: chapuni
Date: Thu Oct 16 19:37:49 2014
New Revision: 220000
URL: http://llvm.org/viewvc/llvm-project?rev=220000&view=rev
Log:
[CMake] lld: Introduce ${cmake_2_8_12_INTERFACE} onto each target_link_libraries. [PR20254]
FIXME: Dependencies should be reorganized.
Modified:
lld/trunk/lib/Driver/CMakeLists.txt
lld/trunk/lib/Passes/CMakeLists.txt
lld/trunk/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt
lld/trunk/lib/ReaderWriter/ELF/CMakeLists.txt
lld/trunk/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt
lld/trunk/lib/ReaderWriter/ELF/Mips/CMakeLists.txt
lld/trunk/lib/ReaderWriter/ELF/PPC/CMakeLists.txt
lld/trunk/lib/ReaderWriter/ELF/X86/CMakeLists.txt
lld/trunk/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt
lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt
lld/trunk/lib/ReaderWriter/Native/CMakeLists.txt
lld/trunk/lib/ReaderWriter/PECOFF/CMakeLists.txt
lld/trunk/lib/ReaderWriter/YAML/CMakeLists.txt
Modified: lld/trunk/lib/Driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/Driver/CMakeLists.txt (original)
+++ lld/trunk/lib/Driver/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -25,7 +25,7 @@ add_lld_library(lldDriver
add_dependencies(lldDriver DriverOptionsTableGen)
-target_link_libraries(lldDriver
+target_link_libraries(lldDriver ${cmake_2_8_12_INTERFACE}
lldConfig
lldPasses
lldMachO
Modified: lld/trunk/lib/Passes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/Passes/CMakeLists.txt (original)
+++ lld/trunk/lib/Passes/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -4,4 +4,6 @@ add_lld_library(lldPasses
RoundTripYAMLPass.cpp
)
-target_link_libraries(lldPasses lldReaderWriter)
+target_link_libraries(lldPasses ${cmake_2_8_12_INTERFACE}
+ lldReaderWriter
+ )
Modified: lld/trunk/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -5,6 +5,6 @@ add_lld_library(lldAArch64ELFTarget
AArch64RelocationPass.cpp
)
-target_link_libraries(lldAArch64ELFTarget
+target_link_libraries(lldAArch64ELFTarget ${cmake_2_8_12_INTERFACE}
lldCore
)
Modified: lld/trunk/lib/ReaderWriter/ELF/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/ELF/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -5,7 +5,7 @@ add_lld_library(lldELF
Writer.cpp
)
-target_link_libraries(lldELF
+target_link_libraries(lldELF ${cmake_2_8_12_INTERFACE}
lldHexagonELFTarget
lldMipsELFTarget
lldPPCELFTarget
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -4,6 +4,6 @@ add_lld_library(lldHexagonELFTarget
HexagonTargetHandler.cpp
)
-target_link_libraries(lldHexagonELFTarget
+target_link_libraries(lldHexagonELFTarget ${cmake_2_8_12_INTERFACE}
lldCore
)
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -6,6 +6,6 @@ add_lld_library(lldMipsELFTarget
MipsTargetHandler.cpp
)
-target_link_libraries(lldMipsELFTarget
+target_link_libraries(lldMipsELFTarget ${cmake_2_8_12_INTERFACE}
lldCore
)
Modified: lld/trunk/lib/ReaderWriter/ELF/PPC/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/PPC/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/PPC/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/ELF/PPC/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -3,6 +3,6 @@ add_lld_library(lldPPCELFTarget
PPCTargetHandler.cpp
)
-target_link_libraries(lldPPCELFTarget
+target_link_libraries(lldPPCELFTarget ${cmake_2_8_12_INTERFACE}
lldCore
)
Modified: lld/trunk/lib/ReaderWriter/ELF/X86/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -3,6 +3,6 @@ add_lld_library(lldX86ELFTarget
X86TargetHandler.cpp
)
-target_link_libraries(lldX86ELFTarget
+target_link_libraries(lldX86ELFTarget ${cmake_2_8_12_INTERFACE}
lldCore
)
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -5,6 +5,6 @@ add_lld_library(lldX86_64ELFTarget
X86_64RelocationPass.cpp
)
-target_link_libraries(lldX86_64ELFTarget
+target_link_libraries(lldX86_64ELFTarget ${cmake_2_8_12_INTERFACE}
lldCore
)
Modified: lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -17,7 +17,7 @@ add_lld_library(lldMachO
WriterMachO.cpp
)
-target_link_libraries(lldMachO
+target_link_libraries(lldMachO ${cmake_2_8_12_INTERFACE}
lldReaderWriter
lldPasses
)
Modified: lld/trunk/lib/ReaderWriter/Native/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/Native/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/Native/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/Native/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -3,6 +3,6 @@ add_lld_library(lldNative
WriterNative.cpp
)
-target_link_libraries(lldNative
+target_link_libraries(lldNative ${cmake_2_8_12_INTERFACE}
lldReaderWriter
)
Modified: lld/trunk/lib/ReaderWriter/PECOFF/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -11,7 +11,7 @@ add_lld_library(lldPECOFF
WriterPECOFF.cpp
)
-target_link_libraries(lldPECOFF
+target_link_libraries(lldPECOFF ${cmake_2_8_12_INTERFACE}
lldReaderWriter
lldDriver
)
Modified: lld/trunk/lib/ReaderWriter/YAML/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/YAML/CMakeLists.txt?rev=220000&r1=219999&r2=220000&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/YAML/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/YAML/CMakeLists.txt Thu Oct 16 19:37:49 2014
@@ -2,6 +2,6 @@ add_lld_library(lldYAML
ReaderWriterYAML.cpp
)
-target_link_libraries(lldYAML
+target_link_libraries(lldYAML ${cmake_2_8_12_INTERFACE}
lldReaderWriter
)
More information about the llvm-commits
mailing list