aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-02-07 06:32:09 +0000
committerPetr Hosek <phosek@chromium.org>2019-02-07 06:32:09 +0000
commitd132f10cc82add60c287956081e77e0d65248b50 (patch)
tree65888f2dcbb43aae5260bf79d3605db36022e0ab /cmake
parent99772d37a6cb0c2955a9560b256572d1125bc513 (diff)
[CMake] Mark runtime library link libraries as private
There's no need to expose these dependencies to consumers. This matches the change made to other runtimes in D57456. Differential Revision: https://reviews.llvm.org/D57873 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/AddCompilerRT.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake
index 81b110203..87f66c0c3 100644
--- a/cmake/Modules/AddCompilerRT.cmake
+++ b/cmake/Modules/AddCompilerRT.cmake
@@ -280,7 +280,7 @@ function(add_compiler_rt_runtime name type)
OUTPUT_NAME ${output_name_${libname}})
set_target_properties(${libname} PROPERTIES FOLDER "Compiler-RT Runtime")
if(LIB_LINK_LIBS)
- target_link_libraries(${libname} ${LIB_LINK_LIBS})
+ target_link_libraries(${libname} PRIVATE ${LIB_LINK_LIBS})
endif()
if(${type} STREQUAL "SHARED")
if(COMMAND llvm_setup_rpath)