[PATCH] D79366: [cmake] restrict object library dependency generation to PUBLIC libraries
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 14:33:06 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa29f603ef0db: [cmake] restrict object library dependency generation to PUBLIC libraries (authored by stephenneuendorffer).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79366/new/
https://reviews.llvm.org/D79366
Files:
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -471,7 +471,12 @@
# result in generating header files. Add a dependendency so that
# the generated header is created before this object library.
if(ARG_LINK_LIBS)
- foreach(link_lib ${ARG_LINK_LIBS})
+ cmake_parse_arguments(LINK_LIBS_ARG
+ ""
+ ""
+ "PUBLIC;PRIVATE"
+ ${ARG_LINK_LIBS})
+ foreach(link_lib ${LINK_LIBS_ARG_PUBLIC})
if(TARGET ${link_lib})
add_dependencies(${obj_name} ${link_lib})
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79366.261935.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200504/395fc779/attachment.bin>
More information about the llvm-commits
mailing list