[all-commits] [llvm/llvm-project] 50a6d3: [CMake] Use PUBLIC link mode for static libraries

Petr Hosek via All-commits all-commits at lists.llvm.org
Sat Feb 29 11:06:11 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 50a6d3a6486d81d21a2c31ce8522321e19bed35e
      https://github.com/llvm/llvm-project/commit/50a6d3a6486d81d21a2c31ce8522321e19bed35e
  Author: Petr Hosek <phosek at google.com>
  Date:   2020-02-29 (Sat, 29 Feb 2020)

  Changed paths:
    M llvm/cmake/modules/AddLLVM.cmake

  Log Message:
  -----------
  [CMake] Use PUBLIC link mode for static libraries

Using INTERFACE prevents the use of imported libraries as we've done
in 00b3d49 because these aren't linked against the target, they're
only made part of the interface. This doesn't affect the output since
static libraries aren't being linked into, but it enables the use of
imported libraries.

Differential Revision: https://reviews.llvm.org/D74106




More information about the All-commits mailing list