[PATCH] D74106: [CMake] Use PUBLIC link mode for static libraries

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 29 11:10:22 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG50a6d3a6486d: [CMake] Use PUBLIC link mode for static libraries (authored by phosek).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74106/new/

https://reviews.llvm.org/D74106

Files:
  llvm/cmake/modules/AddLLVM.cmake


Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -607,7 +607,7 @@
   endif()
 
   if(ARG_STATIC)
-    set(libtype INTERFACE)
+    set(libtype PUBLIC)
   else()
     # We can use PRIVATE since SO knows its dependent libs.
     set(libtype PRIVATE)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74106.247455.patch
Type: text/x-patch
Size: 383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200229/aaae9c2e/attachment.bin>


More information about the llvm-commits mailing list