mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
[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
This commit is contained in:
parent
8571df6ae5
commit
2e0d7a9337
@ -314,6 +314,13 @@ function(llvm_add_library name)
|
||||
${lib_deps}
|
||||
${llvm_libs}
|
||||
)
|
||||
elseif(ARG_SHARED AND BUILD_SHARED_LIBS)
|
||||
# FIXME: It may be PRIVATE since SO knows its dependent libs.
|
||||
target_link_libraries(${name} PUBLIC
|
||||
${ARG_LINK_LIBS}
|
||||
${lib_deps}
|
||||
${llvm_libs}
|
||||
)
|
||||
else()
|
||||
# MODULE|SHARED
|
||||
target_link_libraries(${name} PRIVATE
|
||||
|
Loading…
Reference in New Issue
Block a user