[llvm] r202261 - [CMake] Work around to use target_link_libraries(PUBLIC) in BUILD_SHARED_LIBS mode.
NAKAMURA Takumi
geek4civic at gmail.com
Wed Feb 26 03:58:11 PST 2014
Author: chapuni
Date: Wed Feb 26 05:58:11 2014
New Revision: 202261
URL: http://llvm.org/viewvc/llvm-project?rev=202261&view=rev
Log:
[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.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=202261&r1=202260&r2=202261&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Wed Feb 26 05:58:11 2014
@@ -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
More information about the llvm-commits
mailing list