llvm.org GIT mirror llvm / 2e0d7a9
[CMake] Work around to use target_link_libraries(PUBLIC) in BUILD_SHARED_LIBS mode. FIXME: It may be PRIVATE since SO knows its dependent libs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202261 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 5 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
313313 ${lib_deps}
314314 ${llvm_libs}
315315 )
316 elseif(ARG_SHARED AND BUILD_SHARED_LIBS)
317 # FIXME: It may be PRIVATE since SO knows its dependent libs.
318 target_link_libraries(${name} PUBLIC
319 ${ARG_LINK_LIBS}
320 ${lib_deps}
321 ${llvm_libs}
322 )
316323 else()
317324 # MODULE|SHARED
318325 target_link_libraries(${name} PRIVATE