From: NAKAMURA Takumi Date: Fri, 17 Oct 2014 00:37:49 +0000 (+0000) Subject: [CMake] lld: Introduce ${cmake_2_8_12_INTERFACE} onto each target_link_libraries... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c38df4e9eb2bae874e62f13039fe5fcae111714;p=platform%2Fupstream%2Fllvm.git [CMake] lld: Introduce ${cmake_2_8_12_INTERFACE} onto each target_link_libraries. [PR20254] FIXME: Dependencies should be reorganized. llvm-svn: 220000 --- diff --git a/lld/lib/Driver/CMakeLists.txt b/lld/lib/Driver/CMakeLists.txt index 70c5638..cc322f6 100644 --- a/lld/lib/Driver/CMakeLists.txt +++ b/lld/lib/Driver/CMakeLists.txt @@ -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 diff --git a/lld/lib/Passes/CMakeLists.txt b/lld/lib/Passes/CMakeLists.txt index 0c0876b..20c8618 100644 --- a/lld/lib/Passes/CMakeLists.txt +++ b/lld/lib/Passes/CMakeLists.txt @@ -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 + ) diff --git a/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt index 4499567..7a46537 100644 --- a/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt @@ -5,6 +5,6 @@ add_lld_library(lldAArch64ELFTarget AArch64RelocationPass.cpp ) -target_link_libraries(lldAArch64ELFTarget +target_link_libraries(lldAArch64ELFTarget ${cmake_2_8_12_INTERFACE} lldCore ) diff --git a/lld/lib/ReaderWriter/ELF/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/CMakeLists.txt index d94b7d0..3c56afa 100644 --- a/lld/lib/ReaderWriter/ELF/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/CMakeLists.txt @@ -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 diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt index 20c2780..0789cb5 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt @@ -4,6 +4,6 @@ add_lld_library(lldHexagonELFTarget HexagonTargetHandler.cpp ) -target_link_libraries(lldHexagonELFTarget +target_link_libraries(lldHexagonELFTarget ${cmake_2_8_12_INTERFACE} lldCore ) diff --git a/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt index 0b0d4b1..7d3f447 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt @@ -6,6 +6,6 @@ add_lld_library(lldMipsELFTarget MipsTargetHandler.cpp ) -target_link_libraries(lldMipsELFTarget +target_link_libraries(lldMipsELFTarget ${cmake_2_8_12_INTERFACE} lldCore ) diff --git a/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt index 0ba7173..03e1c57 100644 --- a/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt @@ -3,6 +3,6 @@ add_lld_library(lldPPCELFTarget PPCTargetHandler.cpp ) -target_link_libraries(lldPPCELFTarget +target_link_libraries(lldPPCELFTarget ${cmake_2_8_12_INTERFACE} lldCore ) diff --git a/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt index 43a91f1..444f93b 100644 --- a/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt @@ -3,6 +3,6 @@ add_lld_library(lldX86ELFTarget X86TargetHandler.cpp ) -target_link_libraries(lldX86ELFTarget +target_link_libraries(lldX86ELFTarget ${cmake_2_8_12_INTERFACE} lldCore ) diff --git a/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt index 7ff9141..43ee78f 100644 --- a/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt @@ -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 ) diff --git a/lld/lib/ReaderWriter/MachO/CMakeLists.txt b/lld/lib/ReaderWriter/MachO/CMakeLists.txt index 5d3c805..3a84c67 100644 --- a/lld/lib/ReaderWriter/MachO/CMakeLists.txt +++ b/lld/lib/ReaderWriter/MachO/CMakeLists.txt @@ -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 ) diff --git a/lld/lib/ReaderWriter/Native/CMakeLists.txt b/lld/lib/ReaderWriter/Native/CMakeLists.txt index 7be5b65..2f34927 100644 --- a/lld/lib/ReaderWriter/Native/CMakeLists.txt +++ b/lld/lib/ReaderWriter/Native/CMakeLists.txt @@ -3,6 +3,6 @@ add_lld_library(lldNative WriterNative.cpp ) -target_link_libraries(lldNative +target_link_libraries(lldNative ${cmake_2_8_12_INTERFACE} lldReaderWriter ) diff --git a/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt b/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt index d611246..930f8f8 100644 --- a/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt +++ b/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt @@ -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 ) diff --git a/lld/lib/ReaderWriter/YAML/CMakeLists.txt b/lld/lib/ReaderWriter/YAML/CMakeLists.txt index b76246d..0221999 100644 --- a/lld/lib/ReaderWriter/YAML/CMakeLists.txt +++ b/lld/lib/ReaderWriter/YAML/CMakeLists.txt @@ -2,6 +2,6 @@ add_lld_library(lldYAML ReaderWriterYAML.cpp ) -target_link_libraries(lldYAML +target_link_libraries(lldYAML ${cmake_2_8_12_INTERFACE} lldReaderWriter )