[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

llvm-svn: 353376
This commit is contained in:
Petr Hosek 2019-02-07 06:32:09 +00:00
parent 428c14d1db
commit 55a2fbe234
1 changed files with 1 additions and 1 deletions

View File

@ -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)