diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-26 06:53:16 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-26 06:53:16 +0000 |
commit | 955d27a4ce6cdf2c9672c067c2beaae7d531a0f7 (patch) | |
tree | dfa865519deeb5bf778a591e26e50b43ac8bbcbb /llvm/lib/Support | |
parent | 9df497e5689ec0dd4aef2a67a45ef8681600e8b3 (diff) | |
download | bcm5719-llvm-955d27a4ce6cdf2c9672c067c2beaae7d531a0f7.tar.gz bcm5719-llvm-955d27a4ce6cdf2c9672c067c2beaae7d531a0f7.zip |
[CMake] Use target_link_libraries(INTERFACE|PRIVATE) on CMake-2.8.12 to increase opportunity for parallel build.
target_link_libraries(INTERFACE) doesn't bring inter-target dependencies in add_library,
although final targets have dependencies to whole dependent libraries.
It makes most libraries can be built in parallel.
target_link_libraries(PRIVATE) is used to shaared library.
Each dependent library is linked to the target.so, and its user will not see its grandchildren.
For example,
- libclang.so has sufficient libclang*.a(s).
- c-index-test requires just only libclang.so.
FIXME: lld is tweaked minimally. Adding INTERFACE in each library would be better thing.
llvm-svn: 202241
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index 0b5f623d3a9..a32d238d287 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -142,5 +142,5 @@ if( NOT MSVC ) endif() endif( MINGW ) endif( NOT MSVC ) -target_link_libraries(LLVMSupport ${system_libs}) +target_link_libraries(LLVMSupport ${cmake_2_8_12_INTERFACE} ${system_libs}) set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${system_libs}") |